diff --git a/app/client/ui2018/search.ts b/app/client/ui2018/search.ts index 56f8cd83..a28319c9 100644 --- a/app/client/ui2018/search.ts +++ b/app/client/ui2018/search.ts @@ -147,7 +147,7 @@ export function searchBar(model: SearchModel, testId: TestId = noTestId) { toggleMenu(false) )), dom.onKeyDown({ - Enter: () => model.findNext(), + Enter: (ev) => ev.shiftKey ? model.findPrev() : model.findNext(), Escape: () => { keepExpanded = false; toggleMenu(false); }, // Catch both Tab and Shift+Tab to prevent focus entering unrelated editable label. Tab: () => toggleMenu(false),