Module: wine Branch: master Commit: 6da06330876fde9afaf546844518851fc8b67871 URL: https://source.winehq.org/git/wine.git/?a=commit;h=6da06330876fde9afaf546844...
Author: Derek Lesho dlesho@codeweavers.com Date: Tue Nov 12 14:50:18 2019 -0600
wineandroid: Set the scan code prefix when necessary.
Signed-off-by: Derek Lesho dlesho@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wineandroid.drv/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/wineandroid.drv/keyboard.c b/dlls/wineandroid.drv/keyboard.c index 2c37c42e0d..a0f3257f74 100644 --- a/dlls/wineandroid.drv/keyboard.c +++ b/dlls/wineandroid.drv/keyboard.c @@ -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: