WPF - IME Fix Korean character emitting issue (#3054)

*WPF IME  Fix Korean character emitting issue

Fixes a Korean IME related problem. A user cannot make a word or a sentence by progressing (producing) a single Korean character. Current experimental handler fails to 'emit' a composed Korean character.
This commit is contained in:
billshinji
2020-02-12 11:25:13 +09:00
committed by GitHub
parent 726f762f57
commit 6fea930e3a
@@ -245,6 +245,11 @@ namespace CefSharp.Wpf.Experimental
if (ImeHandler.GetResult(hwnd, (uint)lParam, out text))
{
owner.GetBrowserHost().ImeCommitText(text, new Range(int.MaxValue, int.MaxValue), 0);
if (languageCodeId == ImeNative.LANG_KOREAN)
{
owner.GetBrowserHost().ImeSetComposition(text, new CompositionUnderline[0], new Range(int.MaxValue, int.MaxValue), new Range(0, 0));
owner.GetBrowserHost().ImeFinishComposingText(false);
}
}
else
{