fixed scroll lock and num lock mask

This commit is contained in:
fluxgen 2003-09-06 15:50:25 +00:00
parent b4b4293aa5
commit 352e863c5f

View file

@ -19,13 +19,14 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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 "FbRun.hh"
#include "App.hh" #include "App.hh"
#include "EventManager.hh" #include "EventManager.hh"
#include "Color.hh" #include "Color.hh"
#include "KeyUtil.hh"
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
@ -204,6 +205,10 @@ void FbRun::redrawLabel() {
} }
void FbRun::keyPressEvent(XKeyEvent &ke) { void FbRun::keyPressEvent(XKeyEvent &ke) {
// strip numlock and scrolllock mask
ke.state &= ~FbTk::KeyUtil::numlockMod();
ke.state &= ~FbTk::KeyUtil::scrolllockMod();
FbTk::TextBox::keyPressEvent(ke); FbTk::TextBox::keyPressEvent(ke);
KeySym ks; KeySym ks;
char keychar[1]; char keychar[1];