mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
pikvm/pikvm#819: fixed op
This commit is contained in:
parent
b5fa02d23f
commit
6761588bc8
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user