tabby/tabby-electron/src/config.ts
2021-06-29 23:57:04 +02:00

26 lines
699 B
TypeScript

import { ConfigProvider, Platform } from 'tabby-core'
/** @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 = {}
}