mirror of
https://github.com/SoPat712/Speeder.git
synced 2026-10-08 19:05:02 -04:00
Prevent intercepting typing in a textarea.
This commit is contained in:
1 parent
158039aaa9
commit
3b2139d2d7
1 file changed
+1
@@ -193,6 +193,7 @@ chrome.extension.sendMessage({}, function(response) {
|
||||
// Ignore keydown event if typing in an input box
|
||||
if ((document.activeElement.nodeName === 'INPUT'
|
||||
&& document.activeElement.getAttribute('type') === 'text')
|
||||
|| document.activeElement.nodeName === 'TEXTAREA'
|
||||
|| document.activeElement.isContentEditable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user