diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-20 20:01:23 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-20 20:01:23 +0900 |
commit | 71c271cdf02beca8c706a4e18832c119efa0eeea (patch) | |
tree | 0ada57a480f59b410ae6a6f38bece640e9357729 /src/content | |
parent | c5aaaa948f434a10a68b18b2be75c2283674c93b (diff) |
ignore keypress for another elements
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/index.js b/src/content/index.js index 8fb142a..571a927 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -51,7 +51,9 @@ const startFollows = (newTab) => { }; window.addEventListener('keypress', (e) => { - if (e.target instanceof HTMLInputElement) { + if (e.target instanceof HTMLInputElement || + e.target instanceof HTMLTextAreaElement || + e.target instanceof HTMLSelectElement) { return; } browser.runtime.sendMessage({ |