Prevent intercepting typing in a textarea.

This commit is contained in:
Markus Jarderot
2016-08-27 22:37:04 +02:00
parent 158039aaa9
commit 3b2139d2d7

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;
} }