Commit 77f16583 authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

server: Also queue hotkey message for WM_SYSKEYDOWN.

ALT and F10 key generate WM_SYSKEYDOWN message. They should also have the ability to queue hotkey message. Signed-off-by: 's avatarZiqing Hui <zhui@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 556490d3
......@@ -17699,7 +17699,7 @@ static void test_hotkey(void)
}
DispatchMessageA(&msg);
}
ok_sequence(WmHotkeyPressWithALT, "window hotkey press with ALT", TRUE);
ok_sequence(WmHotkeyPressWithALT, "window hotkey press with ALT", FALSE);
keybd_event(hotkey_letter, 0, KEYEVENTF_KEYUP, 0);
while (PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE))
......
......@@ -1422,7 +1422,7 @@ static int queue_hotkey_message( struct desktop *desktop, struct message *msg )
struct hotkey *hotkey;
unsigned int modifiers = 0;
if (msg->msg != WM_KEYDOWN) return 0;
if (msg->msg != WM_KEYDOWN && msg->msg != WM_SYSKEYDOWN) return 0;
if (desktop->keystate[VK_MENU] & 0x80) modifiers |= MOD_ALT;
if (desktop->keystate[VK_CONTROL] & 0x80) modifiers |= MOD_CONTROL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment