wineandroid: 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:18 -06:00 committed by Alexandre Julliard
parent d5db609c4c
commit 6da0633087
1 changed files with 5 additions and 0 deletions

View File

@ -932,6 +932,11 @@ UINT CDECL ANDROID_MapVirtualKeyEx( UINT code, UINT maptype, HKL hkl )
break;
}
if (code < ARRAY_SIZE( vkey_to_scancode )) ret = vkey_to_scancode[code];
/* set scan code prefix */
if (maptype == MAPVK_VK_TO_VSC_EX &&
(code == VK_RCONTROL || code == VK_RMENU))
ret |= 0xe000;
break;
case MAPVK_VSC_TO_VK:
case MAPVK_VSC_TO_VK_EX: