Commit bfb7799b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

imm32: Ignore some messages in ImmTranslateMessage.

parent 4b621dd9
......@@ -3124,6 +3124,7 @@ BOOL WINAPI ImmTranslateMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpar
TRACE( "hwnd %p, msg %#x, wparam %#Ix, lparam %#Ix\n", hwnd, msg, wparam, lparam );
if (msg < WM_KEYDOWN || msg > WM_KEYUP) return FALSE;
if (!(data = get_imc_data( ImmGetContext( hwnd ) ))) return FALSE;
if (!(ime = imc_select_ime( data ))) return FALSE;
if (data->lastVK == VK_PROCESSKEY) return FALSE;
......
......@@ -7082,12 +7082,12 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
ok_ret( 2, ImmProcessKey( hwnd, expect_ime, 'Q', MAKELONG(2, 0xc010), 0 ) );
ok_ret( 0, ImmTranslateMessage( hwnd, 0, 0, 0 ) );
todo_wine ok_ret( 'Q', ImmGetVirtualKey( hwnd ) );
ok_ret( 'Q', ImmGetVirtualKey( hwnd ) );
ok_seq( process_key_seq );
ok_ret( 0, ImmTranslateMessage( hwnd, WM_KEYDOWN, 'Q', MAKELONG(2, 0x10) ) );
ok_ret( VK_PROCESSKEY, ImmGetVirtualKey( hwnd ) );
todo_wine ok_seq( to_ascii_ex_0 );
ok_seq( to_ascii_ex_0 );
ok_ret( 0, ImmTranslateMessage( hwnd, WM_KEYUP, 'Q', MAKELONG(2, 0xc010) ) );
ok_seq( empty_sequence );
......
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