mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-04 06:24:07 +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…
Add table
Reference in a new issue