Vitaliy Margolen : winex11: Fix GetKeyNameText for Right Shift.

Alexandre Julliard julliard at winehq.org
Mon Apr 28 08:01:06 CDT 2008


Module: wine
Branch: master
Commit: 964687d7c347acfbde412a4f9c47078f50dc84ba
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=964687d7c347acfbde412a4f9c47078f50dc84ba

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Sat Apr 26 17:35:45 2008 -0600

winex11: Fix GetKeyNameText for Right Shift.

---

 dlls/winex11.drv/keyboard.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 40c3e55..b2f2522 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2164,8 +2164,10 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
   /*  handle "don't care" bit (0x02000000) */
   if (!(lParam & 0x02000000)) {
     switch (vkey) {
-         case VK_LSHIFT:
          case VK_RSHIFT:
+                          /* R-Shift is "special" - it is an extended key with separate scan code */
+                          scanCode |= 0x100;
+         case VK_LSHIFT:
                           vkey = VK_SHIFT;
                           break;
        case VK_LCONTROL:
@@ -2176,8 +2178,6 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
           case VK_RMENU:
                           vkey = VK_MENU;
                           break;
-               default:
-                          break;
     }
   }
 




More information about the wine-cvs mailing list