diff options
Diffstat (limited to 'src/FbTk/KeyUtil.hh')
-rw-r--r-- | src/FbTk/KeyUtil.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/KeyUtil.hh b/src/FbTk/KeyUtil.hh index e32384f..e1f1276 100644 --- a/src/FbTk/KeyUtil.hh +++ b/src/FbTk/KeyUtil.hh | |||
@@ -67,7 +67,7 @@ public: | |||
67 | */ | 67 | */ |
68 | unsigned int cleanMods(unsigned int mods) { | 68 | unsigned int cleanMods(unsigned int mods) { |
69 | //remove numlock, capslock and scrolllock | 69 | //remove numlock, capslock and scrolllock |
70 | return mods & ~(capslock() | numlock() ); | 70 | return mods & ~(capslock() | numlock() | scrolllock()); |
71 | } | 71 | } |
72 | 72 | ||
73 | /** | 73 | /** |
@@ -83,9 +83,9 @@ public: | |||
83 | @return corresponding modifier mask | 83 | @return corresponding modifier mask |
84 | */ | 84 | */ |
85 | static unsigned int keycodeToModmask(unsigned int keycode); | 85 | static unsigned int keycodeToModmask(unsigned int keycode); |
86 | int numlock() const { return Mod2Mask; } //m_numlock; } | 86 | int numlock() const { return m_numlock; } |
87 | int capslock() const { return LockMask; } //m_capslock; } | 87 | int capslock() const { return m_capslock; } |
88 | int scrolllock() const { return Mod5Mask; } //m_scrolllock; } | 88 | int scrolllock() const { return m_scrolllock; } |
89 | 89 | ||
90 | private: | 90 | private: |
91 | void loadModmap(); | 91 | void loadModmap(); |