Skip to content

Commit

Permalink
Get rid of old shortcut setting functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Jan 7, 2025
1 parent c0cc2a3 commit e06df9a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
4 changes: 0 additions & 4 deletions src/lib/SolNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class SolNative extends NativeEventEmitter {
| undefined
>
setGlobalShortcut: (key: 'command' | 'option' | 'control') => void
setScratchpadShortcut: (key: 'command' | 'option' | 'none') => void
setClipboardManagerShortcut: (key: 'shift' | 'option' | 'none') => void
getCalendarAuthorizationStatus: typeof global.__SolProxy.getCalendarAuthorizationStatus
requestCalendarAccess: () => Promise<void>
requestAccessibilityAccess: () => Promise<void>
Expand Down Expand Up @@ -110,7 +108,6 @@ class SolNative extends NativeEventEmitter {
this.openWithFinder = module.openWithFinder
this.getMediaInfo = module.getMediaInfo
this.setGlobalShortcut = module.setGlobalShortcut
this.setScratchpadShortcut = module.setScratchpadShortcut
this.getCalendarAuthorizationStatus =
global.__SolProxy.getCalendarAuthorizationStatus
this.requestAccessibilityAccess = module.requestAccessibilityAccess
Expand All @@ -137,7 +134,6 @@ class SolNative extends NativeEventEmitter {
this.checkForUpdates = module.checkForUpdates
this.turnOnEnterListener = module.turnOnEnterListener
this.turnOffEnterListener = module.turnOffEnterListener
this.setClipboardManagerShortcut = module.setClipboardManagerShortcut
this.setWindowRelativeSize = module.setWindowRelativeSize
this.setWindowHeight = module.setWindowHeight
this.openFinderAt = module.openFinderAt
Expand Down
15 changes: 0 additions & 15 deletions src/stores/ui.store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ export const createUIStore = (root: IRootStore) => {
}, '')
}
store.globalShortcut = parsedStore.globalShortcut
store.scratchpadShortcut = parsedStore.scratchpadShortcut ?? 'command'
store.clipboardManagerShortcut =
parsedStore.clipboardManagerShortcut ?? 'shift'
store.showWindowOn = parsedStore.showWindowOn ?? 'screenWithFrontmost'
store.windowManagementEnabled =
parsedStore.windowManagementEnabled ?? true
Expand All @@ -202,10 +199,6 @@ export const createUIStore = (root: IRootStore) => {

solNative.setLaunchAtLogin(parsedStore.launchAtLogin ?? true)
solNative.setGlobalShortcut(parsedStore.globalShortcut)
solNative.setScratchpadShortcut(parsedStore.scratchpadShortcut)
solNative.setClipboardManagerShortcut(
parsedStore.clipboardManagerShortcut,
)
solNative.setShowWindowOn(
parsedStore.showWindowOn ?? 'screenWithFrontmost',
)
Expand Down Expand Up @@ -549,18 +542,10 @@ export const createUIStore = (root: IRootStore) => {
solNative.setGlobalShortcut(key)
store.globalShortcut = key
},
setScratchpadShortcut: (key: 'command' | 'option' | 'none') => {
solNative.setScratchpadShortcut(key)
store.scratchpadShortcut = key
},
setShowWindowOn: (on: 'screenWithFrontmost' | 'screenWithCursor') => {
solNative.setShowWindowOn(on)
store.showWindowOn = on
},
setClipboardManagerShortcut: (key: 'shift' | 'option' | 'none') => {
solNative.setClipboardManagerShortcut(key)
store.clipboardManagerShortcut = key
},
focusWidget: (widget: Widget) => {
store.selectedIndex = 0
store.focusedWidget = widget
Expand Down

0 comments on commit e06df9a

Please sign in to comment.