From eb1b398e44c55058d65be0a8d5d8c24db9b6d874 Mon Sep 17 00:00:00 2001 From: alwin Date: Mon, 02 Aug 2004 08:19:00 +0000 Subject: ignore keys no actions are defined --- diff --git a/noncore/applets/zkbapplet/keyzcfg/zkb.cpp b/noncore/applets/zkbapplet/keyzcfg/zkb.cpp index a357b88..3cc3669 100644 --- a/noncore/applets/zkbapplet/keyzcfg/zkb.cpp +++ b/noncore/applets/zkbapplet/keyzcfg/zkb.cpp @@ -259,13 +259,13 @@ Keymap::~Keymap() { bool Keymap::filter(int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat) { - odebug << "filter: >>> unicode=" << unicode << ", keycode=" << keycode - << ", modifiers=" << modifiers << ", ispressed=" << isPress << oendl; - if (!enabled) { return false; } + odebug << "filter: >>> unicode=" << unicode << ", keycode=" << keycode + << ", modifiers=" << modifiers << ", ispressed=" << isPress << oendl; + // the second check is workaround to make suspend work if // the user pressed it right after he did resume. for some // reason the event sent by qt has autoRepeat true in this @@ -278,7 +278,8 @@ bool Keymap::filter(int unicode, int keycode, int modifiers, Action* action = currentState->get(keycode, isPress, true); if (action==0 || !action->isDefined()) { - return true; + odebug << "no action defined for that"<hasEvent()) { -- cgit v0.9.0.2