summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-01-17 13:44:44 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-01-17 13:52:53 (GMT)
commit81351f2c6f9a939e4c34cb3be6280d396c21941f (patch)
tree7a9572633ad9e1c6546f6ab3df78871b9839b0b7
parent1de7a573c1f407d5126cf6ee1e25b4f92cbdda3c (diff)
downloadQt-81351f2c6f9a939e4c34cb3be6280d396c21941f.zip
Qt-81351f2c6f9a939e4c34cb3be6280d396c21941f.tar.gz
Qt-81351f2c6f9a939e4c34cb3be6280d396c21941f.tar.bz2
Fix one character displacement for cursor in line edits
The variable m_inlinePosition was not updated when m_preeditString was cleared in QCoeFepInputContext. This resulted in cursor displaying up one character beyond where it logically should have been when using HW Qwerty keyboard on E7 and similar devices. Task-number: QTBUG-16238 Reviewed-by: axis
-rw-r--r--src/gui/inputmethod/qcoefepinputcontext_s60.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
index ff199b1..1bef64d 100644
--- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
+++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp
@@ -706,6 +706,7 @@ void QCoeFepInputContext::CancelFepInlineEdit()
QInputMethodEvent event(QLatin1String(""), attributes);
event.setCommitString(QLatin1String(""), 0, 0);
m_preeditString.clear();
+ m_inlinePosition = 0;
sendEvent(event);
}
@@ -853,6 +854,7 @@ void QCoeFepInputContext::commitCurrentString(bool cancelFepTransaction)
QInputMethodEvent event(QLatin1String(""), attributes);
event.setCommitString(m_preeditString, 0, 0);
m_preeditString.clear();
+ m_inlinePosition = 0;
sendEvent(event);
m_hasTempPreeditString = false;