From 8a6bc2cb10eb8d89fa41173077ecfddb1062ca53 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Tue, 22 Oct 2024 11:21:50 -0700 Subject: [PATCH] vpat 44 followup: no escape handler in editors (#4776) --- chrome/content/scaffold/scaffold.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/chrome/content/scaffold/scaffold.js b/chrome/content/scaffold/scaffold.js index f912dcbcd9..74ac6ad0a5 100644 --- a/chrome/content/scaffold/scaffold.js +++ b/chrome/content/scaffold/scaffold.js @@ -942,13 +942,6 @@ var Scaffold = new function () { } } }, true); - // On Escape, focus the selected tab. Use non-capturing listener to not - // do anything on Escape events handled by the editor (e.g. to dismiss autocomplete popup) - doc.addEventListener("keydown", (event) => { - if (event.key == "Escape") { - tabbox.selectedTab.focus(); - } - }); };