mshtml: Update focus information in WM_RESETFOCUS_HACK.

This commit is contained in:
Jacek Caban 2008-01-10 22:13:35 +01:00 committed by Alexandre Julliard
parent cbe9f974d6
commit 8c686f9d00

View file

@ -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;
}
}