Skip to content

Commit

Permalink
fix(quick restart): always navigating to test page when pressing enter
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Mar 13, 2024
1 parent 14280df commit 22ccebc
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 @@ -968,7 +968,8 @@ $(document).on("keydown", async (event) => {
activeElement?.tagName === "BUTTON" ||
activeElement?.tagName === "A" ||
activeElement?.classList.contains("button") ||
activeElement?.classList.contains("textButton");
activeElement?.classList.contains("textButton") ||
activeElement?.tagName === "INPUT";

if (activeElementIsButton) return;

Expand Down

0 comments on commit 22ccebc

Please sign in to comment.