winemac: Set the scan code prefix when necessary.

Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Derek Lesho 2019-11-12 14:50:17 -06:00 committed by Alexandre Julliard
parent bc02e8551f
commit d5db609c4c

View file

@ -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 */