Commit 6e4cbd57 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

user32: ImmProcessKey is only called on WM_KEYDOWN and if the message is being removed.

parent b4b99697
......@@ -2453,8 +2453,8 @@ static BOOL process_keyboard_message( MSG *msg, UINT hw_id, HWND hwnd_filter,
}
accept_hardware_message( hw_id, remove, 0 );
if ( msg->message == WM_KEYDOWN || msg->message == WM_KEYUP )
if ( ImmProcessKey(msg->hwnd, GetKeyboardLayout(0), msg->wParam, msg->lParam, 0) )
if ( remove && msg->message == WM_KEYDOWN )
if (ImmProcessKey(msg->hwnd, GetKeyboardLayout(0), msg->wParam, msg->lParam, 0) )
msg->wParam = VK_PROCESSKEY;
return TRUE;
......
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