Skip to content

Commit

Permalink
WPF - IME Fix Korean character emitting issue (#3054)
Browse files Browse the repository at this point in the history
*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.
  • Loading branch information
billshinji authored Feb 12, 2020
1 parent 726f762 commit 6fea930
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ private void OnImeComposition(IntPtr hwnd, int lParam)
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
{
Expand Down

0 comments on commit 6fea930

Please sign in to comment.