aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/KeyUtil.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-04-05 16:07:01 (GMT)
committermarkt <markt>2007-04-05 16:07:01 (GMT)
commitb09aae8579d57defadaa39ebc5566ddb68799506 (patch)
tree58e712af08aee89feb4b7c706cddb65c9efb563c /src/FbTk/KeyUtil.hh
parente89d4aa219461f9500ca6d5fb5ccedbfb28d7f64 (diff)
downloadfluxbox-b09aae8579d57defadaa39ebc5566ddb68799506.zip
fluxbox-b09aae8579d57defadaa39ebc5566ddb68799506.tar.bz2
changed caps lock detection to use LockMask, so the actual key can be used for Mod4, etc.
Diffstat (limited to 'src/FbTk/KeyUtil.hh')
-rw-r--r--src/FbTk/KeyUtil.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/KeyUtil.hh b/src/FbTk/KeyUtil.hh
index 4909c5a..e80918a 100644
--- a/src/FbTk/KeyUtil.hh
+++ b/src/FbTk/KeyUtil.hh
@@ -87,14 +87,14 @@ public:
87 */ 87 */
88 static unsigned int keycodeToModmask(unsigned int keycode); 88 static unsigned int keycodeToModmask(unsigned int keycode);
89 int numlock() const { return m_numlock; } 89 int numlock() const { return m_numlock; }
90 int capslock() const { return m_capslock; } 90 int capslock() const { return LockMask; }
91 int scrolllock() const { return m_scrolllock; } 91 int scrolllock() const { return m_scrolllock; }
92 92
93private: 93private:
94 void loadModmap(); 94 void loadModmap();
95 95
96 XModifierKeymap *m_modmap; 96 XModifierKeymap *m_modmap;
97 int m_capslock, m_numlock, m_scrolllock; 97 int m_numlock, m_scrolllock;
98 static std::auto_ptr<KeyUtil> s_keyutil; 98 static std::auto_ptr<KeyUtil> s_keyutil;
99}; 99};
100 100