From 48dfdd00aa7a33705682fcfd8152fa7ba181c927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 18 Apr 2022 14:05:02 +0200 Subject: [PATCH] shell: avoid scroll on space --- src/web/shell/shell.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/shell/shell.js b/src/web/shell/shell.js index be3e980..7c8ae57 100644 --- a/src/web/shell/shell.js +++ b/src/web/shell/shell.js @@ -62,6 +62,9 @@ function startConsole() { } else { console.log("ignoring key %s", ev.key); } + if (ev.key === " ") { + ev.preventDefault(); + } }); document.addEventListener("paste", (event) => {