From 352e863c5ffb86348e05252c62bd13ebadbb6236 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sat, 6 Sep 2003 15:50:25 +0000
Subject: fixed scroll lock and num lock mask

---
 util/fbrun/FbRun.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: FbRun.cc,v 1.19 2003/08/27 14:04:12 fluxgen Exp $
+// $Id: FbRun.cc,v 1.20 2003/09/06 15:50:25 fluxgen Exp $
 
 #include "FbRun.hh"
 
 #include "App.hh"
 #include "EventManager.hh"
 #include "Color.hh"
+#include "KeyUtil.hh"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -204,6 +205,10 @@ void FbRun::redrawLabel() {
 }
 
 void FbRun::keyPressEvent(XKeyEvent &ke) {
+    // strip numlock and scrolllock mask
+    ke.state &= ~FbTk::KeyUtil::numlockMod();
+    ke.state &= ~FbTk::KeyUtil::scrolllockMod();
+
     FbTk::TextBox::keyPressEvent(ke);
     KeySym ks;
     char keychar[1];
-- 
cgit v0.11.2