[saco] Implement/match CDXUTIMEEditBox::OnFocusIn

This commit is contained in:
ricardoofnl committed 2026-08-30 17:12:47 +07:00
1 parent ffe3070244
commit 987eb4a9fc
1 file changed
+11 -12
+11 -12
View File
@@ -6191,20 +6191,19 @@ void CDXUTIMEEditBox::OnFocusIn()
{
_ImmAssociateContext( pGame->GetMainWindowHwnd(), s_hImcDef );
CheckToggleState();
} else
_ImmAssociateContext( pGame->GetMainWindowHwnd(), NULL );
//
// Set up the IME global state according to the current instance state
//
HIMC hImc;
if( NULL != ( hImc = _ImmGetContext( pGame->GetMainWindowHwnd() ) ) )
{
if( !s_bEnableImeSystem )
s_ImeState = IMEUI_STATE_OFF;
//
// Set up the IME global state according to the current instance state
//
HIMC hImc;
if( NULL != ( hImc = _ImmGetContext( pGame->GetMainWindowHwnd() ) ) )
{
if( !s_bEnableImeSystem )
s_ImeState = IMEUI_STATE_OFF;
_ImmReleaseContext( pGame->GetMainWindowHwnd(), hImc );
CheckToggleState();
_ImmReleaseContext( pGame->GetMainWindowHwnd(), hImc );
CheckToggleState();
}
}
}