Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.2
-
None
Description
Scenario:
- TextInput containing a string, say "ab"
- Cursor positioned in the middle of the string, say at position 1
- Send QInputMethodEvent with replacement start -1 and length 1, commit string e.g. "c"
Excepted:
- TextInput replaces the first character with given commit string, cursor remains at the same place, i.e. at the end of newly committed string.
Actual outcome:
- TextInput replaces content correctly, but cursor jumps at the end of the content. With longer replacement length, moves twice the amount forward.
Also affects QLineEdit. QML TextEdit works ok.