mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
Update WpfIMEKeyboardHandler.cs (#3346)
fix chinese IMEs ( such as "sogou pinyin", "qq pinyin" etc. ) input window position.
This commit is contained in:
committed by
Alex Maitland
parent
66c95bc499
commit
e5fcb33e8d
@@ -377,6 +377,18 @@ namespace CefSharp.Wpf.Experimental
|
||||
ImeNative.SetCaretPos(x, y);
|
||||
}
|
||||
|
||||
if (languageCodeId == ImeNative.LANG_CHINESE)
|
||||
{
|
||||
// Chinese IMEs need set composition window
|
||||
var compositionPotision = new ImeNative.COMPOSITIONFORM
|
||||
{
|
||||
dwStyle = (int)ImeNative.CFS_POINT,
|
||||
ptCurrentPos = new ImeNative.POINT(x, y),
|
||||
rcArea = new ImeNative.RECT(0, 0, 0, 0)
|
||||
};
|
||||
ImeNative.ImmSetCompositionWindow(hIMC, ref compositionPotision);
|
||||
}
|
||||
|
||||
if (languageCodeId == ImeNative.LANG_KOREAN)
|
||||
{
|
||||
// Chinese IMEs and Japanese IMEs require the upper-left corner of
|
||||
|
||||
Reference in New Issue
Block a user