Skip to content

Commit

Permalink
Merge pull request #49387 from software-mansion-labs/@Skalakid/fix-ev…
Browse files Browse the repository at this point in the history
…ents-on-enter-press

Fix newline entering inside inputs
  • Loading branch information
luacmartins authored Sep 18, 2024
2 parents 0c865d4 + 7af6354 commit cd3f9d2
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 cd3f9d2

Please sign in to comment.