From 1aeefbe2fbdf97277503d6ad8a9643dc6ddb5a67 Mon Sep 17 00:00:00 2001 From: rathnor Date: Tue, 16 Sep 2003 16:10:32 +0000 Subject: [PATCH] fix modifier cleaning in fbrun (was missing capslock) --- util/fbrun/FbRun.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index 51298fad..5a05cecf 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbRun.cc,v 1.21 2003/09/16 14:49:49 rathnor Exp $ +// $Id: FbRun.cc,v 1.22 2003/09/16 16:10:32 rathnor Exp $ #include "FbRun.hh" @@ -205,9 +205,8 @@ void FbRun::redrawLabel() { } void FbRun::keyPressEvent(XKeyEvent &ke) { - // strip numlock and scrolllock mask - ke.state &= ~FbTk::KeyUtil::numlockMod(); - ke.state &= ~FbTk::KeyUtil::scrolllockMod(); + // strip numlock, capslock and scrolllock mask + ke.state = FbTk::KeyUtil::cleanMods(ke.state); FbTk::TextBox::keyPressEvent(ke); KeySym ks;