Module: wine Branch: master Commit: 8c686f9d000d3172e7a65490c342a6ddfb33f74d URL: http://source.winehq.org/git/wine.git/?a=commit;h=8c686f9d000d3172e7a65490c3...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Jan 10 22:13:35 2008 +0100
mshtml: Update focus information in WM_RESETFOCUS_HACK.
---
dlls/mshtml/nsembed.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 4513d51..360e826 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; } }