diff options
author | Devaev Maxim <[email protected]> | 2019-12-10 05:53:29 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-12-10 05:53:29 +0300 |
commit | f5a6fe35a99735c11eaad5d194061223bf9a0820 (patch) | |
tree | 5459afdd2856a4f9917d5f6c4aa95eb95300513c /web/share/js/kvm/keyboard.js | |
parent | 3048fc79233f1ece909dee0f100e72a2f3f5a639 (diff) |
ws api refactoring
Diffstat (limited to 'web/share/js/kvm/keyboard.js')
-rw-r--r-- | web/share/js/kvm/keyboard.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index d573d924..a443b2c9 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -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}, })); } }; |