Derek Lesho : winemac: Set the scan code prefix when necessary.
Module: wine Branch: master Commit: d5db609c4c9f3439aab22c6bbf207302cc3941fc URL: https://source.winehq.org/git/wine.git/?a=commit;h=d5db609c4c9f3439aab22c6bb... Author: Derek Lesho <dlesho(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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 */
participants (1)
-
Alexandre Julliard