1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

imm32: Complete the composition string when the IME is closed.

This commit is contained in:
Rémi Bernon 2024-01-19 15:46:44 +01:00 committed by Alexandre Julliard
parent 0d9e6adada
commit 46c5c2d41a

View file

@ -653,11 +653,7 @@ BOOL WINAPI NotifyIME( HIMC himc, DWORD action, DWORD index, DWORD value )
}
break;
case IMC_SETOPENSTATUS:
if (!ctx->fOpen)
{
input_context_set_comp_str( ctx, NULL, 0 );
if ((msg = ime_set_composition_status( himc, FALSE ))) ime_send_message( himc, msg, 0, 0 );
}
if (!ctx->fOpen) ImmNotifyIME( himc, NI_COMPOSITIONSTR, CPS_COMPLETE, 0 );
NtUserNotifyIMEStatus( ctx->hWnd, ctx->fOpen );
break;
}
@ -691,12 +687,12 @@ BOOL WINAPI NotifyIME( HIMC himc, DWORD action, DWORD index, DWORD value )
if (flags) ime_send_message( himc, WM_IME_COMPOSITION, wchr, flags );
}
ImmSetOpenStatus( himc, FALSE );
break;
/* fallthrough */
}
case CPS_CANCEL:
input_context_set_comp_str( ctx, NULL, 0 );
ImmSetOpenStatus( himc, FALSE );
if ((msg = ime_set_composition_status( himc, FALSE )))
ime_send_message( himc, msg, 0, 0 );
break;
default:
FIXME( "himc %p, action %#lx, index %#lx, value %#lx stub!\n", himc, action, index, value );