diff --git a/frontend/src/ts/commandline/index.ts b/frontend/src/ts/commandline/index.ts index 199ac249f..db6e1f34c 100644 --- a/frontend/src/ts/commandline/index.ts +++ b/frontend/src/ts/commandline/index.ts @@ -387,7 +387,7 @@ $("#commandLine input").on("input", () => { $(document).ready(() => { $(document).on("keydown", (event) => { - if (PageTransition.get()) return event.preventDefault(); + if (PageTransition.get()) return; // opens command line if escape or ctrl/cmd + shift + p if ( ((event.key === "Escape" && Config.quickRestart !== "esc") || diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index 04b2a32d4..1bb187367 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -763,7 +763,7 @@ function handleTab(event: JQuery.KeyDownEvent, popupVisible: boolean): void { } $(document).keydown(async (event) => { - if (ActivePage.get() == "loading") return event.preventDefault(); + if (ActivePage.get() == "loading") return; //autofocus const wordsFocused: boolean = $("#wordsInput").is(":focus");