Update the queue key state even if no window has the focus (spotted by

Rizsanyi Zsolt).
This commit is contained in:
Alexandre Julliard 2002-04-26 18:36:06 +00:00
parent ff1f320ac8
commit 605cba3c8e
1 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,9 @@ static BOOL process_raw_keyboard_message( MSG *msg, ULONG_PTR extra_info )
HOOK_CallHooksA( WH_JOURNALRECORD, HC_ACTION, 0, (LPARAM)&event );
}
/* if we are going to throw away the message, update the queue state now */
if (!msg->hwnd) update_queue_key_state( msg->message, msg->wParam );
return (msg->hwnd != 0);
}