diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-13 12:32:11 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-13 12:32:11 +0900 |
commit | bbc8ff515efaa39c7064307ebf30e2600c4d9a6c (patch) | |
tree | 7922f273929f0f4fc8e4fa6e1d4891440b79debc /src/content | |
parent | 3c1b33add3b8cddc29139f847b57c7023f0013c8 (diff) |
ignore input-element
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/index.js b/src/content/index.js index e882a68..88a668e 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -16,6 +16,10 @@ const invokeEvent = (action) => { } window.addEventListener("keydown", (e) => { + if (e.target instanceof HTMLInputElement) { + return; + } + let request = { type: 'event.keydown', code: e.keyCode, |