From c6d8b12b8910d2af46ea0a6dfd8554c99600245b Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Fri, 23 Sep 2005 15:46:10 +0000 Subject: [PATCH] - Call IsDialogMessage before TranslateAccelerators, so that the accelerator's output, if any, appears in the proper window. Patch by Bletch . Fixes bug 803. svn path=/trunk/; revision=18016 --- reactos/subsys/system/notepad/main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/system/notepad/main.c b/reactos/subsys/system/notepad/main.c index 0b8191bb1e9..0b10eba11ed 100644 --- a/reactos/subsys/system/notepad/main.c +++ b/reactos/subsys/system/notepad/main.c @@ -376,11 +376,12 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show) 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; }