mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
ws api refactoring
This commit is contained in:
@@ -126,9 +126,8 @@ export function Keyboard() {
|
||||
tools.debug("Keyboard: key", (state ? "pressed:" : "released:"), code);
|
||||
if (__ws) {
|
||||
__ws.send(JSON.stringify({
|
||||
event_type: "key",
|
||||
key: code,
|
||||
state: state,
|
||||
"event_type": "key",
|
||||
"event": {"key": code, "state": state},
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user