[ros-diffs] [gadamopoulos] 51377: [win32k] - Do not distinguish left and right keys in WH_KEYBOARD and key messages. Based on wine Fixes several tests
gadamopoulos at svn.reactos.org
gadamopoulos at svn.reactos.org
Sun Apr 17 10:38:06 UTC 2011
Author: gadamopoulos
Date: Sun Apr 17 10:38:06 2011
New Revision: 51377
URL: http://svn.reactos.org/svn/reactos?rev=51377&view=rev
Log:
[win32k]
- Do not distinguish left and right keys in WH_KEYBOARD and key messages. Based on wine
Fixes several tests
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c?rev=51377&r1=51376&r2=51377&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Sun Apr 17 10:38:06 2011
@@ -1307,6 +1307,23 @@
{
EVENTMSG Event;
+ if (Msg->message == WM_KEYDOWN || Msg->message == WM_SYSKEYDOWN ||
+ Msg->message == WM_KEYUP || Msg->message == WM_SYSKEYUP)
+ {
+ switch (Msg->wParam)
+ {
+ case VK_LSHIFT: case VK_RSHIFT:
+ Msg->wParam = VK_SHIFT;
+ break;
+ case VK_LCONTROL: case VK_RCONTROL:
+ Msg->wParam = VK_CONTROL;
+ break;
+ case VK_LMENU: case VK_RMENU:
+ Msg->wParam = VK_MENU;
+ break;
+ }
+ }
+
Event.message = Msg->message;
Event.hwnd = Msg->hwnd;
Event.time = Msg->time;
More information about the Ros-diffs
mailing list