From a7862b8b896c99ee3616e8203721c26110af22c7 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 8 Apr 2011 00:45:34 +0200 Subject: Use esc button to renew the url seen in the urlbar Patch by Furkan Uzumcu :) BUG:238886 REVIEW:101042 --- src/urlbar/urlbar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 0a6783af..078dc6a6 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -285,6 +285,9 @@ void UrlBar::keyPressEvent(QKeyEvent *event) else if (event->key() == Qt::Key_Escape) { clearFocus(); + if (text() != rApp->mainWindow()->currentTab()->view()->url().toString() + && !rApp->mainWindow()->currentTab()->view()->url().toString().startsWith("about")) + setText(rApp->mainWindow()->currentTab()->view()->url().toString()); event->accept(); } -- cgit v1.2.1