Derek Lesho : wineandroid: Set the scan code prefix when necessary.

Alexandre Julliard julliard at winehq.org
Mon Dec 2 17:10:14 CST 2019


Module: wine
Branch: master
Commit: 6da06330876fde9afaf546844518851fc8b67871
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6da06330876fde9afaf546844518851fc8b67871

Author: Derek Lesho <dlesho at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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:




More information about the wine-cvs mailing list