prevent default on any keystroke

This commit is contained in:
marlon-erler
2026-04-14 09:41:02 +00:00
parent ce77af0094
commit 311e6770c3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2271,6 +2271,7 @@
};
this.handleKeyDown = (e) => {
if (_CoreViewModel.checkIsKeystroke(e) == false) return;
e.preventDefault();
const contexts = this.contexts;
while (contexts.length > 0) {
const currentContext = contexts.pop();
@@ -2314,7 +2315,6 @@
e.key.toLowerCase()
);
if (!fn) return false;
e.preventDefault();
fn();
return true;
};