summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-08-18 12:43:55 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-08-18 12:43:55 (GMT)
commit1679b2d71f4f573699aad20aebf4eacc7605fdc8 (patch)
treecb8b7e5e01763b982fd26ba2bc0eea53c9f16583
parent95df5be87b37da139dba33b06aaf6e2a251be698 (diff)
downloadQt-1679b2d71f4f573699aad20aebf4eacc7605fdc8.zip
Qt-1679b2d71f4f573699aad20aebf4eacc7605fdc8.tar.gz
Qt-1679b2d71f4f573699aad20aebf4eacc7605fdc8.tar.bz2
Exact word bubble doesn't disappear when screen is tapped
Sync FEP-aware text editors state to native side. Thus, native side can then do various operations based on editor state - such as removing the user typed 'exact word bubble'. Task-number: QTBUG-20919 Reviewed-by: Miikka Heikkinen
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index d545f2e..8bdaa22 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -1077,6 +1077,10 @@ void QCoeFepInputContext::CancelFepInlineEdit()
if (m_hasTempPreeditString)
return;
+ // Sync with native side editor state. Native side can then do various operations
+ // based on editor state, such as removing 'exact word bubble'.
+ ReportAknEdStateEvent(MAknEdStateObserver::EAknSyncEdwinState);
+
QList<QInputMethodEvent::Attribute> attributes;
QInputMethodEvent event(QLatin1String(""), attributes);
event.setCommitString(QLatin1String(""), 0, 0);