diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-04-08 00:45:34 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-04-08 00:45:34 +0200 |
commit | a7862b8b896c99ee3616e8203721c26110af22c7 (patch) | |
tree | 85f7a4c62272dcb1122262898adbc23877be5196 | |
parent | Add bookmarks by dropping inside the bk toolbar. (diff) | |
download | rekonq-a7862b8b896c99ee3616e8203721c26110af22c7.tar.xz |
Use esc button to renew the url seen in the urlbar
Patch by Furkan Uzumcu :)
BUG:238886
REVIEW:101042
-rw-r--r-- | src/urlbar/urlbar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |