Derek Lesho : winex11: 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: bc02e8551f7fb07c49d5bfd1e3865bca6f157fd2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=bc02e8551f7fb07c49d5bfd1e3865bca6f157fd2

Author: Derek Lesho <dlesho at codeweavers.com>
Date:   Tue Nov 12 14:50:16 2019 -0600

winex11: 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/winex11.drv/keyboard.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 131c5f5442..48da12c029 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -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 */




More information about the wine-cvs mailing list