X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fjumpkeyhandler.cpp;h=f571442bcbedc158356c8fe3370f7f6452d12c2d;hp=d4fb780e2cf80cd5d7ee7dc1c510a9b66092b65a;hb=6353231ed1d32a5be3580ba60a06d9cf588ad877;hpb=dcdc88676f6bf6c961c554e1ff0d160082ba0973 diff --git a/src/qtui/jumpkeyhandler.cpp b/src/qtui/jumpkeyhandler.cpp index d4fb780e..f571442b 100644 --- a/src/qtui/jumpkeyhandler.cpp +++ b/src/qtui/jumpkeyhandler.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -48,13 +48,14 @@ bool JumpKeyHandler::eventFilter(QObject *obj, QEvent *event) { if(key < Qt::Key_1 || Qt::Key_9 < key) return QObject::eventFilter(obj, event); - - if(keyEvent->modifiers() == bindModifier) { + + int mod = keyEvent->modifiers() & ~(Qt::KeypadModifier|Qt::ShiftModifier); + if(mod == bindModifier) { bindKey(key); return true; } - if(keyEvent->modifiers() == jumpModifier) { + if(mod == jumpModifier) { jumpKey(key); return true; }