mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
fixed enter input not ignored when not focused
This commit is contained in:
parent
2035e8478a
commit
7255edc1da
1 changed files with 1 additions and 1 deletions
|
@ -4681,7 +4681,7 @@ $(document).keydown(function (event) {
|
|||
}
|
||||
|
||||
//space or enter
|
||||
if (event.key === " " || event.key === "Enter"){
|
||||
if ((event.key === " " || event.key === "Enter") && wordsFocused){
|
||||
handleSpace(event, (event.key === "Enter" ? true : false));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue