mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:37:17 +00:00
imm32: Ignore some messages in ImmTranslateMessage.
This commit is contained in:
parent
4b621dd9ae
commit
bfb7799b74
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue