From 48965e23819a4b244a161776488a483a6b2426f9 Mon Sep 17 00:00:00 2001 From: crs Date: Sun, 22 Jun 2003 16:39:25 +0000 Subject: [PATCH] More fixes for X11 client keyboard handling. --- lib/client/CServerProxy.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/client/CServerProxy.cpp b/lib/client/CServerProxy.cpp index d174e4cd..435cdc55 100644 --- a/lib/client/CServerProxy.cpp +++ b/lib/client/CServerProxy.cpp @@ -404,7 +404,11 @@ CServerProxy::translateModifierMask(KeyModifierMask mask) const KeyModifierSuper }; - KeyModifierMask newMask = 0; + KeyModifierMask newMask = mask & ~(KeyModifierShift | + KeyModifierControl | + KeyModifierAlt | + KeyModifierMeta | + KeyModifierSuper); if ((mask & KeyModifierShift) != 0) { newMask |= s_masks[m_modifierTranslationTable[kKeyModifierIDShift]]; }