only stopping code execution instead of preventing default

closes #3734
This commit is contained in:
Miodec 2022-11-09 13:14:44 +01:00
parent d79ad414eb
commit 56e3943c04
2 changed files with 2 additions and 2 deletions

View file

@ -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") ||

View file

@ -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");