diff options
author | Maxim Devaev <[email protected]> | 2024-12-30 18:55:59 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-12-30 18:55:59 +0200 |
commit | fed3bf1efdea7528919eb9f318c5ada2dcf35410 (patch) | |
tree | f1bd27d882b85cf845b92b489b1c494c4d1dd715 /web/share/js/kvm/recorder.js | |
parent | d52bb34bb9f5bc669f6b915ba585461356128e39 (diff) |
pikvm/pikvm#1334: Bad link mode for keyboard events
Diffstat (limited to 'web/share/js/kvm/recorder.js')
-rw-r--r-- | web/share/js/kvm/recorder.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/share/js/kvm/recorder.js b/web/share/js/kvm/recorder.js index 5d9d1553..cf792bc2 100644 --- a/web/share/js/kvm/recorder.js +++ b/web/share/js/kvm/recorder.js @@ -336,7 +336,11 @@ export function Recorder() { }); return; - } else if (["key", "mouse_button", "mouse_move", "mouse_wheel", "mouse_relative"].includes(event.event_type)) { + } else if (event.event_type === "key") { + event.event.finish = $("hid-keyboard-bad-link-switch").checked; + __ws.sendHidEvent(event); + + } else if (["mouse_button", "mouse_move", "mouse_wheel", "mouse_relative"].includes(event.event_type)) { __ws.sendHidEvent(event); } else if (event.event_type === "mouse_move_random") { |