Skip to content

Commit b5f097e

Browse files
authored
Merge f269d0d into 726f762
2 parents 726f762 + f269d0d commit b5f097e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,21 @@ private void CloseImeComposition()
241241
private void OnImeComposition(IntPtr hwnd, int lParam)
242242
{
243243
string text = string.Empty;
244-
244+
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)
249+
{
250+
owner.GetBrowserHost().ImeSetComposition(text, new CompositionUnderline[0], new Range(int.MaxValue, int.MaxValue), new Range(0, 0));
251+
owner.GetBrowserHost().ImeFinishComposingText(false);
252+
}
248253
}
249254
else
250255
{
251256
var underlines = new List<CompositionUnderline>();
252257
int compositionStart = 0;
253-
258+
254259
if (ImeHandler.GetComposition(hwnd, (uint)lParam, underlines, ref compositionStart, out text))
255260
{
256261
owner.GetBrowserHost().ImeSetComposition(text, underlines.ToArray(),

0 commit comments

Comments
 (0)