Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,108
    • Issues 2,108
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #19220
Closed
Open
Created Apr 24, 2011 by FPC Admin account@fpc_adminOwner

TEdit inserts at wrong position when parts of the text are selected

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)

  1. 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

  1. 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.

Mantis conversion info:

  • Mantis ID: 19220
  • Version: 0.9.31 (SVN)
  • Fixed in revision: 30461 (#4b1f5f21),35986 (#afac637a)
  • Monitored by: » 7bit (Bernd Kreuss)
Assignee
Assign to
Time tracking