summaryrefslogtreecommitdiff
path: root/src/urlbar/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-02 22:10:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-02 22:10:24 +0200
commitce03d5d4687f7d789ddfacdd51c4281eb9193487 (patch)
tree7d652ed457df886015665864242bbfb23af33aac /src/urlbar/urlbar.cpp
parentmultiple icons for type of items (diff)
downloadrekonq-ce03d5d4687f7d789ddfacdd51c4281eb9193487.tar.xz
hide suggestions on ESC key
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-rw-r--r--src/urlbar/urlbar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index a04d6534..0dc91a1e 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -232,6 +232,12 @@ QSize UrlBar::sizeHint() const
void UrlBar::keyPressEvent(QKeyEvent *event)
{
+ if(event->key() == Qt::Key_Escape)
+ {
+ m_box->hide();
+ return;
+ }
+
// this handles the Modifiers + Return key combinations
QString currentText = m_lineEdit->text().trimmed();
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)