Skip to content

Commit

Permalink
3.2 Touchup (Allow using "Esc" key to close Tabby when focus is on se…
Browse files Browse the repository at this point in the history
…arch)
  • Loading branch information
Bill13579 committed Sep 12, 2024
1 parent d35c5da commit 5f0e046
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f0e046

Please sign in to comment.