diff options
author | Michael Hays <michaelhays36@gmail.com> | 2021-11-26 18:27:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-27 05:57:05 +0530 |
commit | cb6ca0dbf49f3c8005be2f659105d1b792d54b70 (patch) | |
tree | bdd8947cf5bc7b332ef16d7582839c72ac95c899 /src/index.ts | |
parent | Update submodules, browserslist data updates and linter fixes [skip ci] (diff) | |
download | ferdium-app-cb6ca0dbf49f3c8005be2f659105d1b792d54b70.tar.gz ferdium-app-cb6ca0dbf49f3c8005be2f659105d1b792d54b70.tar.zst ferdium-app-cb6ca0dbf49f3c8005be2f659105d1b792d54b70.zip |
fix global shortcut to toggle window directly (#2284)
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 7285533ea..4b21c6b2b 100644 --- a/src/index.ts +++ b/src/index.ts | |||
@@ -406,7 +406,7 @@ const createWindow = () => { | |||
406 | ) { | 406 | ) { |
407 | // Toggle the window on 'Alt+X' | 407 | // Toggle the window on 'Alt+X' |
408 | globalShortcut.register(`${altKey()}+X`, () => { | 408 | globalShortcut.register(`${altKey()}+X`, () => { |
409 | trayIcon.trayMenuTemplate[0].click(); | 409 | trayIcon._toggleWindow(); |
410 | }); | 410 | }); |
411 | } | 411 | } |
412 | }); | 412 | }); |