mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Search backwards with Shift+Enter
Summary: As simple as it sounds. Check ev.shiftKey in Enter key handler in search.ts. Test Plan: Extended test/nbrowser/Search.ts Reviewers: jarek Reviewed By: jarek Subscribers: jarek Differential Revision: https://phab.getgrist.com/D3293
This commit is contained in:
parent
a294eefdff
commit
3445ecb64c
@ -147,7 +147,7 @@ export function searchBar(model: SearchModel, testId: TestId = noTestId) {
|
|||||||
toggleMenu(false)
|
toggleMenu(false)
|
||||||
)),
|
)),
|
||||||
dom.onKeyDown({
|
dom.onKeyDown({
|
||||||
Enter: () => model.findNext(),
|
Enter: (ev) => ev.shiftKey ? model.findPrev() : model.findNext(),
|
||||||
Escape: () => { keepExpanded = false; toggleMenu(false); },
|
Escape: () => { keepExpanded = false; toggleMenu(false); },
|
||||||
// Catch both Tab and Shift+Tab to prevent focus entering unrelated editable label.
|
// Catch both Tab and Shift+Tab to prevent focus entering unrelated editable label.
|
||||||
Tab: () => toggleMenu(false),
|
Tab: () => toggleMenu(false),
|
||||||
|
Loading…
Reference in New Issue
Block a user