From 5f0e0467443e998df52c0efcb4b28f0fd990a539 Mon Sep 17 00:00:00 2001 From: BillK <35489013+Bill13579@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:45:59 +0800 Subject: [PATCH] 3.2 Touchup (Allow using "Esc" key to close Tabby when focus is on search) --- src/popup/popup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/popup/popup.js b/src/popup/popup.js index 9dac8f2..a77aec0 100644 --- a/src/popup/popup.js +++ b/src/popup/popup.js @@ -1208,6 +1208,9 @@ class SearchDiv extends TUIEditableDiv { this.onEnter(this.value, evt); // Move to list } } + if (evt.key === 'Escape') { + closeTabby(); + } }); this.root.addEventListener("keyup", (evt) => { this.tabsList.documentHook_keyUp(evt);