aboutsummaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/index.js3
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({