summaryrefslogtreecommitdiff
path: root/src/webwindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/webwindow')
-rw-r--r--src/webwindow/webwindow.cpp8
-rw-r--r--src/webwindow/webwindow.h4
2 files changed, 11 insertions, 1 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 60eba237..188b4eed 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -895,3 +895,11 @@ void WebWindow::openNewWindow()
rApp->loadUrl(QUrl("about:home"), Rekonq::NewWindow);
}
+
+void WebWindow::checkFocus()
+{
+ if (url().scheme() == QL1S("about"))
+ _bar->setFocus();
+ else
+ _tab->view()->setFocus();
+}
diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h
index 39643714..2a729a1a 100644
--- a/src/webwindow/webwindow.h
+++ b/src/webwindow/webwindow.h
@@ -83,7 +83,9 @@ public:
QAction *actionByName(const QString &name);
bool isPrivateBrowsing();
-
+
+ void checkFocus();
+
private:
void setupActions();
void setupTools();