mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
fixed spacebar not workign
This commit is contained in:
parent
dfa499eb70
commit
c84d13c2fe
1 changed files with 1 additions and 1 deletions
|
@ -2569,7 +2569,7 @@ $(document).keydown((event) => {
|
|||
updateCaretPosition();
|
||||
}
|
||||
//space
|
||||
if (event["keyCode"] == 32) {
|
||||
if (event["keyCode"] == 32 || event.key === " ") {
|
||||
if (!testActive) return;
|
||||
if (currentInput == "") return;
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue