From a9e7ff9a03d8cfee0496247d2426faf217292519 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Mon, 23 May 2011 10:49:28 +0200 Subject: Focus the WebView when a page start to load --- src/mainview.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index c7d66fa1..fb5e3a97 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -349,6 +349,8 @@ void MainView::newTab() { WebView *w = newWebTab()->view(); + currentUrlBar()->setFocus(); + switch (ReKonfig::newTabsBehaviour()) { case 0: // new tab page @@ -363,7 +365,6 @@ void MainView::newTab() default: break; } - currentUrlBar()->setFocus(); } @@ -530,6 +531,11 @@ void MainView::webViewLoadStarted() emit browserTabLoading(true); emit showStatusBarMessage(i18n("Loading..."), Rekonq::Info); + + if (view == currentWebTab()->view() && view->url().scheme() != QL1S("about")) + { + view->setFocus(); + } } -- cgit v1.2.1