diff --git a/dist/index.js b/dist/index.js index de2c1c92..563e46eb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; }; diff --git a/src/ViewModel/Global/coreViewModel.ts b/src/ViewModel/Global/coreViewModel.ts index 9f3a0745..58de2d86 100644 --- a/src/ViewModel/Global/coreViewModel.ts +++ b/src/ViewModel/Global/coreViewModel.ts @@ -8,7 +8,7 @@ import FileTransferModel from "../../Model/Global/fileTransferModel"; import { v4 } from "uuid"; export default class CoreViewModel { - readonly BUILD = "Build 26.04.14.B"; + readonly BUILD = "Build 26.04.14.C"; translations: Translations; @@ -40,6 +40,7 @@ export default class CoreViewModel { handleKeyDown = (e: KeyboardEvent): void => { if (CoreViewModel.checkIsKeystroke(e) == false) return; + e.preventDefault(); const contexts: Context[] = this.contexts; while (contexts.length > 0) { const currentContext: Context | undefined = contexts.pop(); @@ -89,7 +90,6 @@ export class Context { e.key.toLowerCase(), ); if (!fn) return false; - e.preventDefault(); fn(); return true; };