config.ts 699 B

1234567891011121314151617181920212223242526
  1. import { ConfigProvider, Platform } from 'tabby-core'
  2. /** @hidden */
  3. export class ElectronConfigProvider extends ConfigProvider {
  4. platformDefaults = {
  5. [Platform.macOS]: {
  6. hotkeys: {
  7. 'toggle-window': ['Ctrl-Space'],
  8. 'new-window': ['⌘-N'],
  9. },
  10. },
  11. [Platform.Windows]: {
  12. hotkeys: {
  13. 'toggle-window': ['Ctrl-Space'],
  14. 'new-window': ['Ctrl-Shift-N'],
  15. },
  16. },
  17. [Platform.Linux]: {
  18. hotkeys: {
  19. 'toggle-window': ['Ctrl-Space'],
  20. 'new-window': ['Ctrl-Shift-N'],
  21. },
  22. },
  23. }
  24. defaults = {}
  25. }