From e3a9b80df5b3f37bfdb3a7feba5a60cd231f4717 Mon Sep 17 00:00:00 2001 From: Mike Sawka Date: Wed, 22 Jan 2025 18:22:45 -0800 Subject: [PATCH] return true (cancel) the enter key event in typeahead (#1804) --- frontend/app/modals/conntypeahead.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/app/modals/conntypeahead.tsx b/frontend/app/modals/conntypeahead.tsx index 3f424dddb..8be3836b2 100644 --- a/frontend/app/modals/conntypeahead.tsx +++ b/frontend/app/modals/conntypeahead.tsx @@ -465,6 +465,8 @@ const ChangeConnectionBlockModal = React.memo( globalStore.set(changeConnModalAtom, false); globalRefocusWithTimeout(10); } + setRowIndex(0); + return true; } if (keyutil.checkKeyPressed(waveEvent, "Escape")) { globalStore.set(changeConnModalAtom, false); @@ -481,6 +483,7 @@ const ChangeConnectionBlockModal = React.memo( return true; } setRowIndex(0); + return false; }, [changeConnModalAtom, viewModel, blockId, connSelected, selectionList] );