mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 14:13:35 +08:00
Fix nospace simulated spaces getting ignored
This commit is contained in:
parent
3fabc0af36
commit
efc0d36a3e
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