feat: clear search input and perform search on Escape key press in search bar #26

This commit is contained in:
JayBridge 2025-06-30 12:15:28 +08:00
parent b8c675228d
commit b5bf492170

View file

@ -59,6 +59,8 @@ export class SearchBar {
e.preventDefault();
this.selectCurrentSearchResult();
} else if (e.key === "Escape") {
this.searchInput.value = "";
this.performSearch("");
this.hideSearchResults();
}
});