[NOTEPAD] Don't handle main window accelerators in Find dialog (#7320)

This commit is contained in:
Whindmar Saksit 2024-09-08 13:45:51 +02:00 committed by GitHub
parent 3fa740aa81
commit da26ec3465
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -637,8 +637,8 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg) &&
!IsDialogMessage(Globals.hFindReplaceDlg, &msg))
if ((!Globals.hFindReplaceDlg || !IsDialogMessage(Globals.hFindReplaceDlg, &msg)) &&
!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);