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({