diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-25 21:14:52 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-25 21:14:52 +0900 |
commit | c2a5a41cb6bc7780db580e6325e25b6a81729851 (patch) | |
tree | cd8731edaf3f432e166739cddd6a4112a5ca2083 /src/content/index.js | |
parent | 2b6aca17b04f687f5a52fe930fdd0b0b45f62d23 (diff) | |
parent | 1a21e548d924514e7b23add22e9ecd4fb071ea84 (diff) |
Merge branch 'some-fix'
Diffstat (limited to 'src/content/index.js')
-rw-r--r-- | src/content/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content/index.js b/src/content/index.js index 7ce41c1..80acd2d 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -63,6 +63,9 @@ window.addEventListener('keypress', (e) => { if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) { + if (e.key === 'Escape' && e.target.blur) { + e.target.blur(); + } return; } browser.runtime.sendMessage({ |