winex11: 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:16 -06:00 committed by Alexandre Julliard
parent 0b6c3a4460
commit bc02e8551f
1 changed files with 5 additions and 0 deletions

View File

@ -2107,6 +2107,11 @@ UINT CDECL X11DRV_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 */