Skip to content

Commit

Permalink
fix: enter quick restart not working on test page (#5227)
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmer authored Mar 15, 2024
1 parent 1686287 commit ed9fff5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/ts/controllers/input-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ed9fff5

Please sign in to comment.