diff options
author | Mikhail Krutov <nekoxmachina@gmail.com> | 2014-01-23 15:47:29 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2014-01-23 15:47:29 +0100 |
commit | 5f13021dbc94c13336deb1d2a4849908c9db231e (patch) | |
tree | 966a2b9a60e7d31afa55d19da23dd79b4730d861 | |
parent | rekonq 2.4.2 (diff) | |
download | rekonq-5f13021dbc94c13336deb1d2a4849908c9db231e.tar.xz |
Get sure fast typing work!
BUG: 321967
CCBUG: 316552
REVIEW: 115223
REVIEWED-BY: adjam
(PS: Many thanks for this, Mikhail...)
-rw-r--r-- | src/urlbar/urlbar.cpp | 6 | ||||
-rw-r--r-- | src/urlbar/urlbar.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 2dca0ac0..0022bfaf 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -308,7 +308,7 @@ void UrlBar::paintEvent(QPaintEvent *event) } -void UrlBar::keyPressEvent(QKeyEvent *event) +void UrlBar::keyReleaseEvent(QKeyEvent *event) { QString trimmedText = text().trimmed(); @@ -316,7 +316,7 @@ void UrlBar::keyPressEvent(QKeyEvent *event) { disconnect(_icon); _icon->setIcon(KIcon("arrow-right")); - return KLineEdit::keyPressEvent(event); + return KLineEdit::keyReleaseEvent(event); } // this handles the Modifiers + Return key combinations @@ -357,7 +357,7 @@ void UrlBar::keyPressEvent(QKeyEvent *event) event->accept(); } - KLineEdit::keyPressEvent(event); + KLineEdit::keyReleaseEvent(event); } diff --git a/src/urlbar/urlbar.h b/src/urlbar/urlbar.h index 67c2a9c6..29531711 100644 --- a/src/urlbar/urlbar.h +++ b/src/urlbar/urlbar.h @@ -134,7 +134,7 @@ private Q_SLOTS: protected: void paintEvent(QPaintEvent *event); - void keyPressEvent(QKeyEvent *event); + void keyReleaseEvent(QKeyEvent *event); void focusInEvent(QFocusEvent *event); void dropEvent(QDropEvent *event); void mouseDoubleClickEvent(QMouseEvent *); |