[NOTEPAD] Shift+F3 for backward search (#5101)

- Add Shift+F3 accelerator as command CMD_SEARCH_PREV.
- Extend DIALOG_SearchNext function with bDown argument for the action of CMD_SEARCH_PREV.
- Modify the message loop for effective F3 key on Find/Replace dialog.
CORE-17064
This commit is contained in:
Katayama Hirofumi MZ 2023-03-01 07:16:28 +09:00 committed by GitHub
parent a9b1e059f4
commit 55e3feba53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 58 additions and 8 deletions

View file

@ -1070,8 +1070,13 @@ VOID DIALOG_Search(VOID)
DIALOG_SearchDialog(FindText);
}
VOID DIALOG_SearchNext(VOID)
VOID DIALOG_SearchNext(BOOL bDown)
{
if (bDown)
Globals.find.Flags |= FR_DOWN;
else
Globals.find.Flags &= ~FR_DOWN;
if (Globals.find.lpstrFindWhat != NULL)
NOTEPAD_FindNext(&Globals.find, FALSE, TRUE);
else