From 8c686f9d000d3172e7a65490c342a6ddfb33f74d Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 10 Jan 2008 22:13:35 +0100 Subject: [PATCH] mshtml: Update focus information in WM_RESETFOCUS_HACK. --- dlls/mshtml/nsembed.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 4513d51bfae..360e8263ebd 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -113,9 +113,14 @@ static LRESULT WINAPI nsembed_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP * Gecko grabs focus in edit mode and some apps don't like it. * We should somehow prevent grabbing focus. */ + + TRACE("WM_RESETFOCUS_HACK\n"); + if(This->reset_focus) { SetFocus(This->reset_focus); This->reset_focus = NULL; + if(This->doc) + This->doc->focus = FALSE; } } -- 2.11.4.GIT