More fixes for X11 client keyboard handling.

This commit is contained in:
crs 2003-06-22 16:39:25 +00:00
parent a6f21bff90
commit 48965e2381
1 changed files with 5 additions and 1 deletions

View File

@ -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]];
}