From a1d10fc47acf8f9dafa2823914c78a3bdc158993 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 15 Jun 2010 13:02:47 +0000 Subject: [PATCH] Map up the rest of the standard modifiers (if available). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4066 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/xserver/hw/vnc/Input.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/unix/xserver/hw/vnc/Input.cc b/unix/xserver/hw/vnc/Input.cc index 87db443f..3c574d74 100644 --- a/unix/xserver/hw/vnc/Input.cc +++ b/unix/xserver/hw/vnc/Input.cc @@ -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; } } -- 2.39.5