mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-10 07:36:09 +08:00
fix(quick restart): always navigating to test page when pressing enter
This commit is contained in:
parent
14280df96f
commit
22ccebc5e9
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue