diff options
author | Devaev Maxim <[email protected]> | 2018-07-09 07:45:00 +0000 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-09 07:45:00 +0000 |
commit | 670be5434892f706d02f68cc0045567f4e084ce1 (patch) | |
tree | dbc8058f922bf9627ce0b74e76a39f75b7e1c967 /kvmd/web | |
parent | dec9aedb1976a1d81ea68f184ae82ea0e4737638 (diff) |
moar keyboard
Diffstat (limited to 'kvmd/web')
-rw-r--r-- | kvmd/web/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/index.html b/kvmd/web/index.html index cb61185a..3bfe8cc5 100644 --- a/kvmd/web/index.html +++ b/kvmd/web/index.html @@ -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, })); } |