From fbdc76aaf7a1ff6693a0837f7c294cc3de0cb26f Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 24 Jul 2007 17:07:05 -0500 Subject: [PATCH] mshtml: Set focus to the Gecko window in OleInPlaceActiveObject_OnFrameWindowActivate. --- dlls/mshtml/olewnd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/mshtml/olewnd.c b/dlls/mshtml/olewnd.c index 5ce3209f447..613f71d2017 100644 --- a/dlls/mshtml/olewnd.c +++ b/dlls/mshtml/olewnd.c @@ -101,6 +101,9 @@ static HRESULT WINAPI OleInPlaceActiveObject_OnFrameWindowActivate(IOleInPlaceAc if(This->hostui) IDocHostUIHandler_OnFrameWindowActivate(This->hostui, fActivate); + if(fActivate && This->nscontainer) + nsIWebBrowserFocus_Activate(This->nscontainer->focus); + return S_OK; }