projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c14a00f
)
Stop InputLine::eventFilter() from eating JumpKeys
author
Daniel Albers
<daniel@lbers.com>
Sun, 25 Jan 2009 23:15:00 +0000
(
00:15
+0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 16 Feb 2009 10:37:42 +0000
(11:37 +0100)
Fixes #501.
src/uisupport/inputline.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/inputline.cpp
b/src/uisupport/inputline.cpp
index
53bcdca
..
355845d
100644
(file)
--- a/
src/uisupport/inputline.cpp
+++ b/
src/uisupport/inputline.cpp
@@
-43,7
+43,7
@@
bool InputLine::eventFilter(QObject *watched, QEvent *event) {
BufferView *view = qobject_cast<BufferView *>(watched);
if(view) {
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
BufferView *view = qobject_cast<BufferView *>(watched);
if(view) {
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
- if(keyEvent->text().length() == 1) { // normal key press
+ if(keyEvent->text().length() == 1
&& !(keyEvent->modifiers() & (Qt::ControlModifier ^ Qt::AltModifier))
) { // normal key press
QChar c = keyEvent->text().at(0);
if(c.isLetterOrNumber() || c.isSpace() || c.isPunct() || c.isSymbol()) {
setFocus();
QChar c = keyEvent->text().at(0);
if(c.isLetterOrNumber() || c.isSpace() || c.isPunct() || c.isSymbol()) {
setFocus();