tabby/tabby-electron/src/config.ts

27 lines
699 B
TypeScript
Raw Normal View History

2021-06-29 21:57:04 +00:00
import { ConfigProvider, Platform } from 'tabby-core'
2021-06-18 23:36:25 +00:00
/** @hidden */
export class ElectronConfigProvider extends ConfigProvider {
platformDefaults = {
[Platform.macOS]: {
hotkeys: {
'toggle-window': ['Ctrl-Space'],
'new-window': ['⌘-N'],
},
},
[Platform.Windows]: {
hotkeys: {
'toggle-window': ['Ctrl-Space'],
'new-window': ['Ctrl-Shift-N'],
},
},
[Platform.Linux]: {
hotkeys: {
'toggle-window': ['Ctrl-Space'],
'new-window': ['Ctrl-Shift-N'],
},
},
}
defaults = {}
}