From 3bdb7e0e39953b59e91f628888abf0dc18ee1ea2 Mon Sep 17 00:00:00 2001 From: Ruslan Bekenev Date: Tue, 9 Apr 2019 11:05:54 -0700 Subject: [PATCH] remove global F11 shortcut --- src/shortcutConfig.js | 1 - src/shortcuts.js | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/shortcutConfig.js b/src/shortcutConfig.js index e5cd9de..00460a7 100644 --- a/src/shortcutConfig.js +++ b/src/shortcutConfig.js @@ -90,7 +90,6 @@ class ShortcutConfig { 'quick-add': 'CommandOrControl+Alt+a', 'show-hide': 'CommandOrControl+Alt+Q', 'refresh': 'CommandOrControl+Alt+r', - 'toggle-fullscreen': 'F11', 'quit': 'Alt+F4', } } diff --git a/src/shortcuts.js b/src/shortcuts.js index 48f8cf8..c9363fe 100644 --- a/src/shortcuts.js +++ b/src/shortcuts.js @@ -12,7 +12,6 @@ class shortcuts { this.registerQuickAddShortcut(); this.registerShowHideShortcut(); this.registerReloadShortcut(); - this.registerFullscreenShortcut(); this.registerQuitShortcut(); } @@ -48,13 +47,6 @@ class shortcuts { }); } - // toogle full screen - registerFullscreenShortcut() { - globalShortcut.register(this.shortcutConfig.config['toggle-fullscreen'], () => { - this.win.setFullScreen(!this.win.isFullScreen()); - }); - } - registerQuitShortcut() { globalShortcut.register(this.shortcutConfig.config['quit'], () => { // isQuiting is important for