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: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ziqing Hui 2021-11-02 10:54:22 +08:00 committed by Alexandre Julliard
parent 556490d35b
commit 77f1658393
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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;