diff options
-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) |