mirror of
https://github.com/heyman/heynote.git
synced 2024-12-27 00:58:50 +01:00
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:
parent
090b6fc1dd
commit
e1287d795e
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user