summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-21 22:48:48 +0300
committerMaxim Devaev <[email protected]>2022-09-21 22:48:56 +0300
commit6761588bc805d4b87ecc3e9d0399355c5d79f93c (patch)
treee4aa9cdfa737e28b149b81deaf063c7c01ed6d7d /web
parentb5fa02d23f423d566c09da4675d05cbf4d0bb520 (diff)
pikvm/pikvm#819: fixed op
Diffstat (limited to 'web')
-rw-r--r--web/share/js/keypad.js4
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";
}
}