Threads without active or focus window should not receive keyboard

messages.
This commit is contained in:
Peter Ganten 2000-08-14 20:53:00 +00:00 committed by Alexandre Julliard
parent c19e1a7e19
commit 553e3c98d1

View File

@ -382,7 +382,9 @@ static DWORD MSG_TranslateKbdMsg( HWND hTopWnd, DWORD first, DWORD last,
if( message < WM_SYSKEYDOWN )
message += WM_SYSKEYDOWN - WM_KEYDOWN;
}
if ( !hWnd ) return SYSQ_MSG_ABANDON;
pWnd = WIN_FindWndPtr( hWnd );
if (pWnd && (pWnd->hmemTaskQ != GetFastQueue16()))
{
/* Not for the current task */