mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
moar keyboard
This commit is contained in:
@@ -42,9 +42,9 @@ function onKeyEvent(event, state) {
|
||||
// TODO: run this code under the lock
|
||||
console.log("Key", (state ? "pressed:" : "released:"), event)
|
||||
ws.send(JSON.stringify({
|
||||
event_type: "key_event",
|
||||
key_code: event.code,
|
||||
key_state: state,
|
||||
event_type: "key",
|
||||
key: event.code,
|
||||
state: state,
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user