public void SetClient(ITextInputMethodClient client) { var active = client is { }; if (active) { _host.RequestFocus(); Reset(); _imm.ShowSoftInput(_host, ShowFlags.Implicit); } else { _imm.HideSoftInputFromWindow(_host.WindowToken, HideSoftInputFlags.None); } }
public void SetClient(ITextInputMethodClient client) { _controlActive = client is { }; UpdateActive(); }
void ITextInputMethodImpl.SetClient(ITextInputMethodClient client) { _controlActive = client is { }; UpdateActive(); }