Remove AltGr from global hotkey setting on Windows

Did not work. On windows pressing Ctrl+Alt is the same as AltGr, so setting the hotkey to Ctrl+Alt+H will make the hotkey AltGr+H work.
This commit is contained in:
Jonatan Heyman 2024-01-09 00:38:51 +01:00
parent 090b6fc1dd
commit e1287d795e
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@
keys = keys.concat(')!@#$%^&*(:;:+=<,_->.?/~`{][|\\}"'.split(""))
return {
isMac: window.heynote.platform.isMac,
isWindows: window.heynote.platform.isWindows,
cmdOrCtrl: false,
ctrl: false,
shift: false,
@ -60,7 +61,7 @@
this.ctrl = keys.includes("Ctrl")
this.shift = keys.includes("Shift")
this.alt = keys.includes("Alt")
this.altGr = keys.includes("AltGr")
this.altGr = !this.isMac && !this.isWindows && keys.includes("AltGr")
this.super = keys.includes("Super")
this.key = keys[keys.length - 1]
}