From 41432c353551c93551f49ca03d4e77881496d2ed Mon Sep 17 00:00:00 2001 From: Aleksei Gusev Date: Tue, 14 Apr 2026 10:28:11 +0300 Subject: [PATCH] Pass `Escape` if permanent insert mode is active Many web pages handle `Escape` to dismiss an editable input field, e.g. Todoist's "Quick Add" or YouTube Music's search field. Before this change when a user hits `Escape` Todoist doesn't dismiss the dialog, the same happens with YouTube Music and probably many more web apps. With this improvement everything works as expected. --- content_scripts/mode_insert.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content_scripts/mode_insert.js b/content_scripts/mode_insert.js index 824369339..5214eefb6 100644 --- a/content_scripts/mode_insert.js +++ b/content_scripts/mode_insert.js @@ -49,7 +49,9 @@ class InsertMode extends Mode { if (!this.permanent) { this.exit(); + return this.suppressEvent; } + return this.passEventToPage; } else { return this.passEventToPage; }