Skip to content

Fix caret position after backspace #16712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Aug 16, 2024

What does the pull request do?

This PR ensures that the caret position is correct after backspace is pressed to delete the last character of a line.
Note that the CaretIndex value itself was correct, but not the caret bounds.

A unit test has been added.

Fixed issues

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051311-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit 21d8cea into AvaloniaUI:master Aug 16, 2024
11 checks passed
@MrJul MrJul deleted the fixes/caret-position-after-backspace branch September 19, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backspace incorrectly places caret before linebreak when deleting the last character of a line
4 participants