From ed9fff5d415c6e890290edfccd94c6e5c9d6fb89 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Fri, 15 Mar 2024 10:41:16 +0100 Subject: [PATCH] fix: enter quick restart not working on test page (#5227) --- frontend/src/ts/controllers/input-controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index cdd5dca8c..54b606e9c 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -969,7 +969,8 @@ $(document).on("keydown", async (event) => { activeElement?.tagName === "A" || activeElement?.classList.contains("button") || activeElement?.classList.contains("textButton") || - activeElement?.tagName === "INPUT"; + (activeElement?.tagName === "INPUT" && + activeElement?.id !== "wordsInput"); if (activeElementIsButton) return;