diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-10-20 16:46:12 +0300 |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2011-10-20 16:46:12 +0300 |
commit | 2be143ebb5246bb2f9b674bb09d23df5b2b6c504 (patch) | |
tree | 81b4a77a2d571c5230e831f0624fe17bec0a9b15 /doc/src/snippets/code/src_sql_kernel_qsqldriver.cpp | |
parent | 20542f9546637bd649c928226249be0ffc91841b (diff) | |
download | qt4-tools-2be143ebb5246bb2f9b674bb09d23df5b2b6c504.tar.gz |
Accepting predicted text using hardware keyboard replaces unwanted part
Current implementation of Symbian input context assumes that predicted
word replacement happens so that the original typed text is at the end
of the surrounded text. The logic fails, if to-be-predicted text is
in the middle of, or in the beginning of another, already accepted
word.
As a fix, input context need to store the original cursor position,
when reset() was called (this happens when word selection list
appears). Input context is already storing a copy of a preedit string
in this situation.
Then, when word replacement happens, this stored cursor position is
used instead of current cursor position (the native side might
temporarily move the cursor to the end when word selection list opens
or closes) to replace the typed word with one selected from suggested
word list.
Stored cursor position is dismissed immediately after used, or
if cached preedit string is dismissed.
Task-number: QTBUG-22147
Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqldriver.cpp')
0 files changed, 0 insertions, 0 deletions