From 2611e5b22a15ee64a4627cc7d3d814b78993495f Mon Sep 17 00:00:00 2001 From: johnsonj Date: Wed, 17 Jul 2019 15:49:13 +1000 Subject: Feature [feature-requests:#1300] part 5. Stop Google IME on Windows 7 moving while typing. --- doc/ScintillaHistory.html | 1 + win32/ScintillaWin.cxx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 3a144951a..61261ceb0 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -572,6 +572,7 @@ Position candidate window closer to composition text.
Stop candidate window moving while typing.
Align candidate window to target part of composition text.
+ Stop Google IME on Windows 7 moving while typing.
Bug #2120. Feature #1300. diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 487b2bc02..98ea15cea 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1914,6 +1914,11 @@ void ScintillaWin::NotifyCaretMove() { void ScintillaWin::UpdateSystemCaret() { if (hasFocus) { + if (pdoc->TentativeActive()) { + // ongoing inline mode IME composition, don't inform IME of system caret position. + // fix candidate window for Google Japanese IME moved on typing on Win7. + return; + } if (HasCaretSizeChanged()) { DestroySystemCaret(); CreateSystemCaret(); -- cgit v1.2.3