Skip to content

Commit 780d96c

Browse files
yeyezizhiamaitland
authored andcommitted
Fix Chinese IME character Composition issue (#3163)
1 parent dc733f0 commit 780d96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ private void OnImeComposition(IntPtr hwnd, int lParam)
245245
if (ImeHandler.GetResult(hwnd, (uint)lParam, out text))
246246
{
247247
owner.GetBrowserHost().ImeCommitText(text, new Range(int.MaxValue, int.MaxValue), 0);
248-
if (languageCodeId == ImeNative.LANG_KOREAN)
248+
if (languageCodeId == ImeNative.LANG_KOREAN || languageCodeId == ImeNative.LANG_CHINESE)
249249
{
250250
owner.GetBrowserHost().ImeSetComposition(text, new CompositionUnderline[0], new Range(int.MaxValue, int.MaxValue), new Range(0, 0));
251251
owner.GetBrowserHost().ImeFinishComposingText(false);

0 commit comments

Comments
 (0)