From 30db053f2aba5a465930753e7e64a93a77ccb420 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 16 Sep 2004 19:09:30 +0000 Subject: [PATCH] Accept WM_SYSCHAR message for processsing in TranslateAcceleratorW. --- dlls/user/menu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/user/menu.c b/dlls/user/menu.c index 52a2c785952..25974be5e08 100644 --- a/dlls/user/menu.c +++ b/dlls/user/menu.c @@ -4527,7 +4527,7 @@ static BOOL translate_accelerator( HWND hWnd, UINT message, WPARAM wParam, LPARA if (wParam != key) return FALSE; - if (message == WM_CHAR) + if (message == WM_CHAR || message == WM_SYSCHAR) { if ( !(fVirt & FALT) && !(fVirt & FVIRTKEY) ) { @@ -4697,11 +4697,12 @@ INT WINAPI TranslateAcceleratorW( HWND hWnd, HACCEL hAccel, LPMSG msg ) WARN_(accel)("invalid accel handle=%p\n", hAccel); return 0; } - if ((msg->message != WM_KEYDOWN && + if ( msg->message != WM_KEYDOWN && msg->message != WM_KEYUP && msg->message != WM_SYSKEYDOWN && msg->message != WM_SYSKEYUP && - msg->message != WM_CHAR)) return 0; + msg->message != WM_SYSCHAR && + msg->message != WM_CHAR ) return 0; TRACE_(accel)("TranslateAccelerators hAccel=%p, hWnd=%p," "msg->hwnd=%p, msg->message=%04x, wParam=%08x, lParam=%lx\n",