From bc02e8551f7fb07c49d5bfd1e3865bca6f157fd2 Mon Sep 17 00:00:00 2001 From: Derek Lesho Date: Tue, 12 Nov 2019 14:50:16 -0600 Subject: [PATCH] winex11: Set the scan code prefix when necessary. Signed-off-by: Derek Lesho Signed-off-by: Alexandre Julliard --- 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 131c5f5442f..48da12c0292 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 */