summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/web/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/web/index.html b/kvmd/web/index.html
index 3bfe8cc5..6fb3236e 100644
--- a/kvmd/web/index.html
+++ b/kvmd/web/index.html
@@ -40,6 +40,9 @@ function onWsMessage(message) {
function onKeyEvent(event, state) {
// TODO: run this code under the lock
+ if (!event.metaKey) { // https://github.com/wesbos/keycodes/blob/gh-pages/scripts.js
+ event.preventDefault();
+ }
console.log("Key", (state ? "pressed:" : "released:"), event)
ws.send(JSON.stringify({
event_type: "key",