Merge pull request #917 from SeerLite/nospace-event

Fix nospace simulated space events getting ignored
This commit is contained in:
Jack 2021-02-02 22:51:22 +00:00 committed by GitHub
commit 4ee2ae20c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();