mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 18:53:26 +08:00
fix: enter quick restart not working on test page (#5227)
This commit is contained in:
parent
1686287f93
commit
ed9fff5d41
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue