mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user