Skip to content

Commit

Permalink
Remove AltGr from global hotkey setting on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
heyman committed Jan 8, 2024
1 parent 090b6fc commit e1287d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/settings/KeyboardHotkey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]
}
Expand Down

0 comments on commit e1287d7

Please sign in to comment.