]> source.dussan.org Git - tigervnc.git/commitdiff
Map up the rest of the standard modifiers (if available).
authorPierre Ossman <ossman@cendio.se>
Tue, 15 Jun 2010 13:02:47 +0000 (13:02 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 15 Jun 2010 13:02:47 +0000 (13:02 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4066 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/xserver/hw/vnc/Input.cc

index 87db443fe56bbd0dd49e1042ec42bed565c6afd9..3c574d743bb7999e01365f2d05221fafa7880d08 100644 (file)
@@ -907,6 +907,20 @@ static Bool GetMappings(KeySymsPtr pKeySyms, CARD8 *pModMap)
                case XK_Alt_R:
                        pModMap[i + MIN_KEY] = Mod1Mask;
                        break;
+               case XK_Num_Lock:
+                       pModMap[i + MIN_KEY] = Mod2Mask;
+                       break;
+                       /* No defaults for Mod3Mask yet */
+               case XK_Super_L:
+               case XK_Super_R:
+               case XK_Hyper_L:
+               case XK_Hyper_R:
+                       pModMap[i + MIN_KEY] = Mod4Mask;
+                       break;
+               case XK_ISO_Level3_Shift:
+               case XK_Mode_switch:
+                       pModMap[i + MIN_KEY] = Mod5Mask;
+                       break;
                }
        }