diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-07-13 11:04:36 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-07-13 16:36:57 (GMT) |
commit | 7acf2417bd2ae17c2e3c289c7caed84219e5fecd (patch) | |
tree | 54cb8a122568a6faf81fe4de58ac7e985d216c7e /src/gui/inputmethod | |
parent | 8a3b4e1e66fb7cdcf1a5aa518e1cc31eaba72236 (diff) | |
download | Qt-7acf2417bd2ae17c2e3c289c7caed84219e5fecd.zip Qt-7acf2417bd2ae17c2e3c289c7caed84219e5fecd.tar.gz Qt-7acf2417bd2ae17c2e3c289c7caed84219e5fecd.tar.bz2 |
Fix last character being overwritten in password field
The temporary cursor position was not being updated after committing the
input (changing the cleartext into a *), as a result of which, the next
keypress was mistaken for a multitap input which should replace the last
character.
Task-number: QTBUG-11673
Reviewed-by: axis
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_s60.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp index d081cfd..999edda 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp +++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp @@ -294,6 +294,10 @@ void QCoeFepInputContext::commitTemporaryPreeditString() return; commitCurrentString(false); + + //update cursor position, now this pre-edit text has been committed. + //this prevents next keypress overwriting it (QTBUG-11673) + m_cursorPos = focusWidget()->inputMethodQuery(Qt::ImCursorPosition).toInt(); } void QCoeFepInputContext::mouseHandler( int x, QMouseEvent *event) |