mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
WPF - Japanese IME unable to enter space (#3455)
This is a fix in response to the issue of not emitting spaces in Japanese IME (from @karthikeyancdm). After all, it turns out that ImeSetComposition() and ImeFinishComposingText() should be invoked regardless of the current language.
This commit is contained in:
committed by
Alex Maitland
parent
e78e18fdb0
commit
c51ec7ad9d
@@ -246,11 +246,8 @@ 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 || languageCodeId == ImeNative.LANG_CHINESE)
|
||||
{
|
||||
owner.GetBrowserHost().ImeSetComposition(text, new CompositionUnderline[0], new Range(int.MaxValue, int.MaxValue), new Range(0, 0));
|
||||
owner.GetBrowserHost().ImeFinishComposingText(false);
|
||||
}
|
||||
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