diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/keypad.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/keypad.js b/web/share/js/keypad.js index 5140ec8f..141d658a 100644 --- a/web/share/js/keypad.js +++ b/web/share/js/keypad.js @@ -102,9 +102,9 @@ export function Keypad(__keys_parent, __sendKey, __apply_fixes) { let code = event.code; if (__apply_fixes) { // https://github.com/pikvm/pikvm/issues/819 - if (code == "IntlBackslash" && event.key in ["`", "~"]) { + if (code == "IntlBackslash" && ["`", "~"].includes(event.key)) { code = "Backquote"; - } else if (code == "Backquote" && event.key in ["§", "±"]) { + } else if (code == "Backquote" && ["§", "±"].includes(event.key)) { code = "IntlBackslash"; } } |