diff options
author | fluxgen <fluxgen> | 2003-09-06 15:50:25 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-06 15:50:25 (GMT) |
commit | 352e863c5ffb86348e05252c62bd13ebadbb6236 (patch) | |
tree | 7bb7b6ccfc5c1552f2990ceb532abb7f546a83c2 /util | |
parent | b4b4293aa586087be1c58fb9fe52163768f097bf (diff) | |
download | fluxbox_paul-352e863c5ffb86348e05252c62bd13ebadbb6236.zip fluxbox_paul-352e863c5ffb86348e05252c62bd13ebadbb6236.tar.bz2 |
fixed scroll lock and num lock mask
Diffstat (limited to 'util')
-rw-r--r-- | util/fbrun/FbRun.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index f2ebbac..92d8c02 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -19,13 +19,14 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbRun.cc,v 1.19 2003/08/27 14:04:12 fluxgen Exp $ | 22 | // $Id: FbRun.cc,v 1.20 2003/09/06 15:50:25 fluxgen Exp $ |
23 | 23 | ||
24 | #include "FbRun.hh" | 24 | #include "FbRun.hh" |
25 | 25 | ||
26 | #include "App.hh" | 26 | #include "App.hh" |
27 | #include "EventManager.hh" | 27 | #include "EventManager.hh" |
28 | #include "Color.hh" | 28 | #include "Color.hh" |
29 | #include "KeyUtil.hh" | ||
29 | 30 | ||
30 | #ifdef HAVE_CONFIG_H | 31 | #ifdef HAVE_CONFIG_H |
31 | #include "config.h" | 32 | #include "config.h" |
@@ -204,6 +205,10 @@ void FbRun::redrawLabel() { | |||
204 | } | 205 | } |
205 | 206 | ||
206 | void FbRun::keyPressEvent(XKeyEvent &ke) { | 207 | void FbRun::keyPressEvent(XKeyEvent &ke) { |
208 | // strip numlock and scrolllock mask | ||
209 | ke.state &= ~FbTk::KeyUtil::numlockMod(); | ||
210 | ke.state &= ~FbTk::KeyUtil::scrolllockMod(); | ||
211 | |||
207 | FbTk::TextBox::keyPressEvent(ke); | 212 | FbTk::TextBox::keyPressEvent(ke); |
208 | KeySym ks; | 213 | KeySym ks; |
209 | char keychar[1]; | 214 | char keychar[1]; |