summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-04-08 00:45:34 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-04-08 00:45:34 +0200
commita7862b8b896c99ee3616e8203721c26110af22c7 (patch)
tree85f7a4c62272dcb1122262898adbc23877be5196 /src
parentAdd bookmarks by dropping inside the bk toolbar. (diff)
downloadrekonq-a7862b8b896c99ee3616e8203721c26110af22c7.tar.xz
Use esc button to renew the url seen in the urlbar
Patch by Furkan Uzumcu :) BUG:238886 REVIEW:101042
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/urlbar.cpp3
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();
}