Merge pull request #141 from MizardX/issue140

Prevent intercepting typing in a textarea.
This commit is contained in:
Ilya Grigorik
2016-08-28 15:10:27 -07:00
committed by GitHub

View File

@@ -193,6 +193,7 @@ chrome.extension.sendMessage({}, function(response) {
// Ignore keydown event if typing in an input box // Ignore keydown event if typing in an input box
if ((document.activeElement.nodeName === 'INPUT' if ((document.activeElement.nodeName === 'INPUT'
&& document.activeElement.getAttribute('type') === 'text') && document.activeElement.getAttribute('type') === 'text')
|| document.activeElement.nodeName === 'TEXTAREA'
|| document.activeElement.isContentEditable) { || document.activeElement.isContentEditable) {
return false; return false;
} }