Derek Lesho : winemac: Set the scan code prefix when necessary.
Alexandre Julliard
julliard at winehq.org
Mon Dec 2 17:10:14 CST 2019
Module: wine
Branch: master
Commit: d5db609c4c9f3439aab22c6bbf207302cc3941fc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d5db609c4c9f3439aab22c6bbf207302cc3941fc
Author: Derek Lesho <dlesho at codeweavers.com>
Date: Tue Nov 12 14:50:17 2019 -0600
winemac: Set the scan code prefix when necessary.
Signed-off-by: Derek Lesho <dlesho at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winemac.drv/keyboard.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/winemac.drv/keyboard.c b/dlls/winemac.drv/keyboard.c
index aed4ff0d6e..bb408cb20c 100644
--- a/dlls/winemac.drv/keyboard.c
+++ b/dlls/winemac.drv/keyboard.c
@@ -1392,6 +1392,11 @@ UINT CDECL macdrv_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl)
break;
}
}
+
+ /* set scan code prefix */
+ if (wMapType == MAPVK_VK_TO_VSC_EX &&
+ (wCode == VK_RCONTROL || wCode == VK_RMENU))
+ ret |= 0xe000;
break;
case MAPVK_VSC_TO_VK: /* scan-code to vkey-code */
More information about the wine-cvs
mailing list