From bbc8ff515efaa39c7064307ebf30e2600c4d9a6c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 13 Aug 2017 12:32:11 +0900 Subject: [PATCH] ignore input-element --- src/content/index.js | 4 ++++ 1 file changed, 4 insertions(+) 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,