Merge pull request #544 from jacobcolbert/fix-543

Prevent disabling default keybindings from disabling text input.
This commit is contained in:
jacobcolbert
2019-11-19 19:28:14 -05:00
committed by GitHub

View File

@@ -364,9 +364,9 @@
} }
// Ignore keydown event if typing in an input box // Ignore keydown event if typing in an input box
if (document.activeElement.nodeName === 'INPUT' if (event.target.nodeName === 'INPUT'
|| document.activeElement.nodeName === 'TEXTAREA' || event.target.nodeName === 'TEXTAREA'
|| document.activeElement.isContentEditable) { || event.target.isContentEditable) {
return false; return false;
} }