Commit ddfb6d51 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

user32: Send EVENT_OBJECT_FOCUS when the focus changes.

The NVDA screen reader needs this. Signed-off-by: 's avatarAlex Henrie <alexhenrie24@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1af6cb07
...@@ -73,6 +73,9 @@ static HWND set_focus_window( HWND hwnd ) ...@@ -73,6 +73,9 @@ static HWND set_focus_window( HWND hwnd )
if (ime_default) if (ime_default)
SendMessageW( ime_default, WM_IME_INTERNAL, IME_INTERNAL_ACTIVATE, (LPARAM)hwnd ); SendMessageW( ime_default, WM_IME_INTERNAL, IME_INTERNAL_ACTIVATE, (LPARAM)hwnd );
if (previous)
NotifyWinEvent( EVENT_OBJECT_FOCUS, hwnd, OBJID_CLIENT, 0 );
SendMessageW( hwnd, WM_SETFOCUS, (WPARAM)previous, 0 ); SendMessageW( hwnd, WM_SETFOCUS, (WPARAM)previous, 0 );
} }
return previous; return previous;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment