From 670be5434892f706d02f68cc0045567f4e084ce1 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 9 Jul 2018 07:45:00 +0000 Subject: moar keyboard --- kvmd/web/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvmd/web/index.html') 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, })); } -- cgit v1.2.3