mirror of
https://github.com/liubinfighter/csv-lite.git
synced 2026-07-22 05:43:52 +00:00
feat: clear search input and perform search on Escape key press in search bar #26
This commit is contained in:
parent
b8c675228d
commit
b5bf492170
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ export class SearchBar {
|
|||
e.preventDefault();
|
||||
this.selectCurrentSearchResult();
|
||||
} else if (e.key === "Escape") {
|
||||
this.searchInput.value = "";
|
||||
this.performSearch("");
|
||||
this.hideSearchResults();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue