diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-02 22:10:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-02 22:10:24 +0200 |
commit | ce03d5d4687f7d789ddfacdd51c4281eb9193487 (patch) | |
tree | 7d652ed457df886015665864242bbfb23af33aac | |
parent | multiple icons for type of items (diff) | |
download | rekonq-ce03d5d4687f7d789ddfacdd51c4281eb9193487.tar.xz |
hide suggestions on ESC key
-rw-r--r-- | src/urlbar/urlbar.cpp | 6 |
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) |