mirror of
https://github.com/heyman/heynote.git
synced 2025-01-15 10:28:38 +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(""))
|
keys = keys.concat(')!@#$%^&*(:;:+=<,_->.?/~`{][|\\}"'.split(""))
|
||||||
return {
|
return {
|
||||||
isMac: window.heynote.platform.isMac,
|
isMac: window.heynote.platform.isMac,
|
||||||
|
isWindows: window.heynote.platform.isWindows,
|
||||||
cmdOrCtrl: false,
|
cmdOrCtrl: false,
|
||||||
ctrl: false,
|
ctrl: false,
|
||||||
shift: false,
|
shift: false,
|
||||||
@ -60,7 +61,7 @@
|
|||||||
this.ctrl = keys.includes("Ctrl")
|
this.ctrl = keys.includes("Ctrl")
|
||||||
this.shift = keys.includes("Shift")
|
this.shift = keys.includes("Shift")
|
||||||
this.alt = keys.includes("Alt")
|
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.super = keys.includes("Super")
|
||||||
this.key = keys[keys.length - 1]
|
this.key = keys[keys.length - 1]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user