Skip to content

Commit 0f43b7a

Browse files
committed
[Win32k]
- Patch by Erich HooverSend: WM_SYSKEYDOWN and WM_SYSKEYUP when the 'F10' key is used. See wine bug 19383 and http://www.winehq.org/pipermail/wine-patches/2009-October/079871.html for details. - Update key state for all hardware postings. svn path=/trunk/; revision=51521
1 parent 2aaa0b9 commit 0f43b7a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

reactos/subsystems/win32/win32k/ntuser/input.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,9 +1297,10 @@ IntKeyboardInput(KEYBDINPUT *ki, BOOL Injected)
12971297
if (ki->dwFlags & KEYEVENTF_KEYUP)
12981298
{
12991299
Msg.message = WM_KEYUP;
1300-
if ((gQueueKeyStateTable[VK_MENU] & 0x80) &&
1300+
if (((gQueueKeyStateTable[VK_MENU] & 0x80) &&
13011301
((wVkStripped == VK_MENU) || (wVkStripped == VK_CONTROL)
13021302
|| !(gQueueKeyStateTable[VK_CONTROL] & 0x80)))
1303+
|| (wVkStripped == VK_F10))
13031304
{
13041305
if( TrackSysKey == VK_MENU || /* <ALT>-down/<ALT>-up sequence */
13051306
(wVkStripped != VK_MENU)) /* <ALT>-down...<something else>-up */
@@ -1311,8 +1312,9 @@ IntKeyboardInput(KEYBDINPUT *ki, BOOL Injected)
13111312
else
13121313
{
13131314
Msg.message = WM_KEYDOWN;
1314-
if ((gQueueKeyStateTable[VK_MENU] & 0x80 || wVkStripped == VK_MENU) &&
1315+
if (((gQueueKeyStateTable[VK_MENU] & 0x80 || wVkStripped == VK_MENU) &&
13151316
!(gQueueKeyStateTable[VK_CONTROL] & 0x80 || wVkStripped == VK_CONTROL))
1317+
|| (wVkStripped == VK_F10))
13161318
{
13171319
Msg.message = WM_SYSKEYDOWN;
13181320
TrackSysKey = wVkStripped;

reactos/subsystems/win32/win32k/ntuser/msgqueue.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,7 @@ MsqPostMessage(PUSER_MESSAGE_QUEUE MessageQueue, MSG* Msg, BOOLEAN HardwareMessa
10061006
InsertTailList(&MessageQueue->HardwareMessagesListHead,
10071007
&Message->ListEntry);
10081008

1009-
if (MessageBits & QS_KEY)
1010-
update_input_key_state( MessageQueue, Msg );
1009+
update_input_key_state( MessageQueue, Msg );
10111010
}
10121011

10131012
Message->QS_Flags = MessageBits;

0 commit comments

Comments
 (0)