From cc8272e258eaf584bfcb802d83650ed0f7fde640 Mon Sep 17 00:00:00 2001 From: crs Date: Sun, 1 Sep 2002 16:45:44 +0000 Subject: [PATCH] work around to get mode switch working. --- lib/server/CXWindowsPrimaryScreen.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/server/CXWindowsPrimaryScreen.cpp b/lib/server/CXWindowsPrimaryScreen.cpp index 1a23eb79..d9cce9bd 100644 --- a/lib/server/CXWindowsPrimaryScreen.cpp +++ b/lib/server/CXWindowsPrimaryScreen.cpp @@ -696,6 +696,11 @@ CXWindowsPrimaryScreen::updateKeys() m_capsLockMask = 0; m_scrollLockMask = 0; + // work around for my system, which reports this state bit when + // mode switch is down, instead of the appropriate modifier bit. + // should have no effect on other systems. -crs 9/02. + m_modeSwitchMask |= (1 << 13); + // set keycodes and masks for (unsigned int i = 0; i < 8; ++i) { const unsigned int bit = (1 << i);