diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-12-12 17:37:11 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-12-12 17:37:11 -0500 |
| commit | 4fa20df3862a38103bc5d12fde77822d85ad220d (patch) | |
| tree | e8da7545ba4a324ff05385ffff39d5f1d9ea8154 | |
| parent | 25f8b427ed226cb24977fd1783d856eda8ac0b5c (diff) | |
use local hotkeys not global fixes #759
| -rw-r--r-- | electron_js/main.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/electron_js/main.js b/electron_js/main.js index ecd5151a..c5af535a 100644 --- a/electron_js/main.js +++ b/electron_js/main.js @@ -75,7 +75,8 @@ function createAlternateWindow() { function createWindow() { -const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { +// don't need these as we are using local menu bindings +/*const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { console.log('Command Or Control+F is pressed'); isFs = !isFs; @@ -85,7 +86,8 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { const dbgx = globalShortcut.register('CommandOrControl+Alt+D', () => { console.log('CommandOrControl+Alt+D is pressed'); win.webContents.openDevTools(); - }) + })*/ + /*const newwinx = globalShortcut.register('CommandOrControl+Alt+N', () => { console.log('CommandOrControl+Alt+N is pressed'); @@ -173,13 +175,13 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { submenu: [ {role: 'reload'}, {role: 'forcereload'}, - {role: 'toggledevtools'}, + {role: 'toggledevtools', accelerator: 'CmdOrCtrl+Alt+D'}, {type: 'separator'}, {role: 'resetzoom'}, {role: 'zoomin'}, {role: 'zoomout'}, {type: 'separator'}, - {role: 'togglefullscreen'} + {role: 'togglefullscreen', accelerator: 'CmdOrCtrl+Alt+F'} ] }, { |
