QAndroidInputContext: Generate a QInputMethodEvent in reset()
Although QPlatformInputContext::reset() documentation says that reset() should not send any QInputMethodEvents, implementations on Windows, macOS and iOS do send a QInputMethodEvent which clears preedit text in their reimplementations of reset(). Text editing controls depend on that and may not clear preedit text if such event is not sent. Change-Id: I75ab73946cb06e93e5fc5e98e0cc503a7de5c2e0 Reviewed-by: BogDan Vatra <bogdan@kdab.com>bb10
parent
2c61b4e0f0
commit
346f1999f5
|
|
@ -558,6 +558,7 @@ static inline int getBlockPosition(const QSharedPointer<QInputMethodQueryEvent>
|
|||
|
||||
void QAndroidInputContext::reset()
|
||||
{
|
||||
focusObjectStopComposing();
|
||||
clear();
|
||||
m_batchEditNestingLevel = 0;
|
||||
m_handleMode = Hidden;
|
||||
|
|
|
|||
Loading…
Reference in New Issue