mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
Merge pull request #917 from SeerLite/nospace-event
Fix nospace simulated space events getting ignored
This commit is contained in:
commit
4ee2ae20c2
1 changed files with 5 additions and 1 deletions
|
@ -4837,7 +4837,11 @@ $(document).keyup((event) => {
|
|||
});
|
||||
|
||||
$(document).keydown(function (event) {
|
||||
if (!event.originalEvent.isTrusted) return;
|
||||
if (
|
||||
!(activeFunBox == "nospace" && event.key == " ") &&
|
||||
!event.originalEvent.isTrusted
|
||||
)
|
||||
return;
|
||||
|
||||
if (!resultVisible) {
|
||||
let now = performance.now();
|
||||
|
|
Loading…
Reference in a new issue