From: James Tabor Date: Mon, 2 May 2011 07:40:04 +0000 (+0000) Subject: [Win32k] X-Git-Tag: backups/ros-amd64-bringup@60669^2~811 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=110864eec585b0ef9e27361f28cf83c32715249c [Win32k] - Fix shift key handling, see bug 6175. svn path=/trunk/; revision=51540 --- diff --git a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c index 2c754cdcbbc..e34d0a3101b 100644 --- a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c +++ b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c @@ -53,6 +53,8 @@ DWORD FASTCALL UserGetKeyState(DWORD key) if( key < 0x100 ) { ret = (DWORD)MessageQueue->KeyState[key]; + if (MessageQueue->KeyState[key] & KS_DOWN_BIT) + ret |= 0xFF00; // If down, windows returns 0xFF80. } return ret;