mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[COMCTL32][USER32] EDIT: Fix caret position for IME
CORE-11700
This commit is contained in:
@@ -4392,7 +4392,11 @@ static void EDIT_ImeComposition(HWND hwnd, LPARAM CompFlag, EDITSTATE *es)
|
||||
{
|
||||
if (CompFlag & GCS_COMPSTR)
|
||||
EDIT_GetCompositionStr(hIMC, CompFlag, es);
|
||||
#ifdef __REACTOS__
|
||||
cursor = 0;
|
||||
#else
|
||||
cursor = ImmGetCompositionStringW(hIMC, GCS_CURSORPOS, 0, 0);
|
||||
#endif
|
||||
}
|
||||
ImmReleaseContext(hwnd, hIMC);
|
||||
EDIT_SetCaretPos(es, es->selection_start + cursor, es->flags & EF_AFTER_WRAP);
|
||||
|
||||
@@ -4617,7 +4617,11 @@ static void EDIT_ImeComposition(HWND hwnd, LPARAM CompFlag, EDITSTATE *es)
|
||||
{
|
||||
if (CompFlag & GCS_COMPSTR)
|
||||
EDIT_GetCompositionStr(hIMC, CompFlag, es);
|
||||
#ifdef __REACTOS__
|
||||
cursor = 0;
|
||||
#else
|
||||
cursor = ImmGetCompositionStringW(hIMC, GCS_CURSORPOS, 0, 0);
|
||||
#endif
|
||||
}
|
||||
ImmReleaseContext(hwnd, hIMC);
|
||||
EDIT_SetCaretPos(es, es->selection_start + cursor, es->flags & EF_AFTER_WRAP);
|
||||
|
||||
Reference in New Issue
Block a user