diff options
Diffstat (limited to 'src/urlbar/urlbar.cpp')
-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(); } |