Windows: Fix QWindowsInputContext for Japanese IME.
Change the QWindowsInputContext::composition if it is called with lParam has flags GCS_RESULTSTR and GCS_DELTASTART, it doesn't call endContextComposition. Task-number: QTBUG-49955 Change-Id: I49de3f239bf8a77414e433b255db08f227141158 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Takumi ASAKI <takumi.asaki@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> (cherry picked from qtbase/786984e7e47a63094ad64ec86a4892cc5c0ad6d4) Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>bb10
parent
e9eb32f332
commit
c09412fcea
|
|
@ -484,7 +484,8 @@ bool QWindowsInputContext::composition(HWND hwnd, LPARAM lParamIn)
|
|||
if (lParam & GCS_RESULTSTR) {
|
||||
// A fixed result, return the converted string
|
||||
event->setCommitString(getCompositionString(himc, GCS_RESULTSTR));
|
||||
endContextComposition();
|
||||
if (!(lParam & GCS_DELTASTART))
|
||||
endContextComposition();
|
||||
}
|
||||
const bool result = QCoreApplication::sendEvent(m_compositionContext.focusObject, event.data());
|
||||
qCDebug(lcQpaInputMethods) << '<' << __FUNCTION__ << "sending markup="
|
||||
|
|
|
|||
Loading…
Reference in New Issue