Input fixed (event path sometimes undefined on some browsers)
This commit is contained in:
parent
531c0e1344
commit
9c328059fe
@ -186,7 +186,7 @@ const keyEvent = (function () {
|
||||
}
|
||||
|
||||
if (event.repeat) return;
|
||||
if (event.path.indexOf(document.body) != 0) return; // only use key if it was pressed on empty space
|
||||
if (event.target.tagName == 'INPUT') return; // dont use key if on input
|
||||
|
||||
event.preventDefault();
|
||||
moveUpdated();
|
||||
|
Loading…
Reference in New Issue
Block a user