- Call IsDialogMessage before TranslateAccelerators, so that the
accelerator's output, if any, appears in the proper window. Patch by
Bletch <npwoods(a)mess.org>rg>. Fixes bug 803.
Modified: trunk/reactos/subsys/system/notepad/main.c
_____
Modified: trunk/reactos/subsys/system/notepad/main.c
--- trunk/reactos/subsys/system/notepad/main.c 2005-09-23 15:42:40 UTC
(rev 18015)
+++ trunk/reactos/subsys/system/notepad/main.c 2005-09-23 15:46:10 UTC
(rev 18016)
@@ -376,11 +376,12 @@
while (GetMessage(&msg, 0, 0, 0))
{
- if (!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg) &&
!IsDialogMessage(Globals.hFindReplaceDlg, &msg))
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
+ if (!IsDialogMessage(Globals.hFindReplaceDlg, &msg) &&
+ !TranslateAccelerator(Globals.hMainWnd, hAccel, &msg))
+ {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
}
+ }
return msg.wParam;
}
Show replies by date