Skip to content

Commit

Permalink
Remove useKeyboardShortcut Enter hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Sep 18, 2024
1 parent d13f37b commit 7af6354
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/components/Search/SearchRouter/SearchRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ function SearchRouter() {
clearUserQuery();
}, [currentQuery, closeSearchRouter]);

useKeyboardShortcut(
CONST.KEYBOARD_SHORTCUTS.ENTER,
() => {
if (!currentQuery) {
return;
}

onSearchSubmit();
},
{
captureOnInputs: true,
shouldBubble: false,
},
);

useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.ESCAPE, () => {
closeSearchRouter();
clearUserQuery();
Expand Down

0 comments on commit 7af6354

Please sign in to comment.