Skip to content

Commit 42b0b36

Browse files
author
Aman Kumar
committed
refactor(SearchBar): comment out Escape key handling logic
- Commented out the Escape key handling logic in the SearchBar component to prevent hiding the search bar on Escape key press. - This change may be part of a larger refactor to improve user experience or functionality related to the search bar.
1 parent 10f2950 commit 42b0b36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/viewer/ui/searchbar.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ class SearchBar {
102102
const { current, total } = getMatchStatus();
103103
this.updateMatchCounter(current, total);
104104
break;
105-
case 'Escape':
106-
e.preventDefault();
107-
// Hide the search bar
108-
this.hide();
109-
break;
105+
// case 'Escape':
106+
// e.preventDefault();
107+
// // Hide the search bar
108+
// this.hide();
109+
// break;
110110
}
111111
});
112112

0 commit comments

Comments
 (0)