Added ISO_Level3_Shift as a synonym for Mode_switch. I've no idea

if this will work as hoped but I've seen documentation that XFree
4.3 uses ISO_Level3_Shift rather than Mode_switch.
This commit is contained in:
crs 2004-03-28 14:53:01 +00:00
parent 97046541b9
commit cfb082f306
1 changed files with 2 additions and 0 deletions

View File

@ -554,6 +554,7 @@ CXWindowsKeyState::mapToModifierMask(unsigned int i, KeySym keysym)
return KeyModifierSuper; return KeyModifierSuper;
case XK_Mode_switch: case XK_Mode_switch:
case XK_ISO_Level3_Shift:
m_modeSwitchMask = (1 << i); m_modeSwitchMask = (1 << i);
return KeyModifierModeSwitch; return KeyModifierModeSwitch;
@ -585,6 +586,7 @@ CXWindowsKeyState::updateModifiers()
}; };
static const CModifierBitInfo s_modifierBitTable[] = { static const CModifierBitInfo s_modifierBitTable[] = {
{ &CXWindowsKeyState::m_modeSwitchKeysym, XK_Mode_switch, NoSymbol }, { &CXWindowsKeyState::m_modeSwitchKeysym, XK_Mode_switch, NoSymbol },
{ &CXWindowsKeyState::m_modeSwitchKeysym, XK_ISO_Level3_Shift, NoSymbol },
}; };
// choose the keysym to use for some modifiers. if a modifier has // choose the keysym to use for some modifiers. if a modifier has