TEdit inserts at wrong position when parts of the text are selected
Original Reporter info from Mantis: 7bit
-
Reporter name: Bernd Kreuss
Original Reporter info from Mantis: 7bit
- Reporter name: Bernd Kreuss
Description:
Steps to reproduce:
1: put a TEdit onto a form and compile and run the application
(or alternatively just open one of the IDE's dialogs which contains a
TEdit like for example refactor -> rename)
- write some text into it and then select a few characters in the
middle of the word. For example I will write the text
"TFooBar" into the TEdit and then select the three letters "Foo".
Then press any (printable) key.
3: I expect it to look like this (I have pressed the letter "X" and in the following the | marks the position of the caret), this is what I expect:
TX|Bar
- And this is what happens:
TBX|ar
It removes the "Foo" as expected but then jumps over the B and inserts after it.
Additional information:
It is a regression but I cannot say which version exactly broke it since I did not use it and not update for a few months, I would guess there is a range of a few hundred revision numbers where it could have happened.
I have not yet checked whether this has also somehow slipped into the 0.9.30 branch but I cannot remember having seen this behavior in the trunk during the time when the release branch was stabilized.
I have initially marked it as "major" because - although some people might never notice it at all - the TEdit with this behavior might be perceived as nearly unusable by users with a certain style of editing text with the keyboard.