diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-10-23 18:45:16 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:05 +0100 |
commit | bb73ed639669874f21aa543bf15e9394f1a8c0b8 (patch) | |
tree | d410030fa073a59bbfde2fd4f31a4d02e08af6ef /src/webwindow | |
parent | Removed some porting FIXME and re-enabled old features (diff) | |
download | rekonq-bb73ed639669874f21aa543bf15e9394f1a8c0b8.tar.xz |
Fix focus handling on views
Diffstat (limited to 'src/webwindow')
-rw-r--r-- | src/webwindow/webwindow.cpp | 8 | ||||
-rw-r--r-- | src/webwindow/webwindow.h | 4 |
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(); |