shell: avoid scroll on space

This commit is contained in:
Remko Tronçon 2022-04-18 14:05:02 +02:00
parent 4fe9471c66
commit 48dfdd00aa

View file

@ -62,6 +62,9 @@ function startConsole() {
} else {
console.log("ignoring key %s", ev.key);
}
if (ev.key === " ") {
ev.preventDefault();
}
});
document.addEventListener("paste", (event) => {