Skip to content
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

Fix - Make empty text run content empty #16693

Closed
wants to merge 1 commit into from
Closed

Conversation

emmauss
Copy link
Contributor

@emmauss emmauss commented Aug 14, 2024

What does the pull request do?

Make empty textruns have empty content. That is, return empty char buffer when Text is requested.

What is the current behavior?

Currently, empty text runs are run with only 1 whitespace char, " ". This is indistinguishable from a textrun created by user with a space, and may cause issues with text clients that uses SurroundingText for prediction, especially on some android versions.

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #16656 . #16666 fixes a similar input issue on older android devices.

@avaloniaui-bot
Copy link

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

@emmauss emmauss force-pushed the empty_text_run_fix branch from 947f39c to 88d0ded Compare August 15, 2024 07:18
@avaloniaui-bot
Copy link

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

@maxkatz6 maxkatz6 requested a review from Gillibald August 15, 2024 10:29
@maxkatz6 maxkatz6 added bug backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Aug 15, 2024
@emmauss emmauss force-pushed the empty_text_run_fix branch from 88d0ded to 95a7871 Compare August 15, 2024 15:06
@avaloniaui-bot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextBlock unexpectedly deletes first character when using input method auto-complete
3 participants