From 7af635493d568bf52466f291f7dbbb2ae2856da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Wed, 18 Sep 2024 14:42:02 +0200 Subject: [PATCH] Remove useKeyboardShortcut Enter hook --- .../Search/SearchRouter/SearchRouter.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/components/Search/SearchRouter/SearchRouter.tsx b/src/components/Search/SearchRouter/SearchRouter.tsx index b38c55279c1e..63699d34ce04 100644 --- a/src/components/Search/SearchRouter/SearchRouter.tsx +++ b/src/components/Search/SearchRouter/SearchRouter.tsx @@ -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();