From 7f88e2461b704a8d950fda6ab8a063cd7b9ad927 Mon Sep 17 00:00:00 2001 From: anevilyak Date: Fri, 16 Jul 2010 01:18:56 +0000 Subject: [PATCH] When asked to programmatically open a new URL (i.e. by being launched from another app), give the resulting web view input focus. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@531 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/BrowserApp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/webpositive/BrowserApp.cpp b/src/apps/webpositive/BrowserApp.cpp index 2afbab8045..2782892c3f 100644 --- a/src/apps/webpositive/BrowserApp.cpp +++ b/src/apps/webpositive/BrowserApp.cpp @@ -363,6 +363,7 @@ BrowserApp::_CreateNewPage(const BString& url, bool fullscreen) else webWindow->CreateNewTab(url, true); webWindow->Activate(); + webWindow->CurrentWebView()->MakeFocus(true); loadedInWindowOnCurrentWorkspace = true; } webWindow->Unlock();