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 unable to type cultural character into TextBox #15394

Merged

Conversation

dieuminhs
Copy link
Contributor

Check KeySymbol before return null in TryCreateRawKeyEventArgs to prevent skipping cultural character.

What does the pull request do?

This PR makes sure we don't skip a special cultural character when it's typed using custom cultural tools.

What is the current behavior?

Any special cultural character will be deleted upon typing into Textbox, all keyDown or keyUp events will receive a blank character instead of the special character.

What is the updated/expected behavior with this PR?

Special cultural character should be typed and inserted normally in TextBox.

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

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #13190

Check KeySymbol before return null in TryCreateRawKeyEventArgs to prevent skipping cultural character.
@avaloniaui-bot
Copy link

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

@maxkatz6 maxkatz6 merged commit 8fce3aa into AvaloniaUI:master Apr 17, 2024
9 of 10 checks passed
@maxkatz6 maxkatz6 added the backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch label Apr 17, 2024
maxkatz6 pushed a commit that referenced this pull request Apr 20, 2024
Check KeySymbol before return null in TryCreateRawKeyEventArgs to prevent skipping cultural character.

Co-authored-by: CKPhong <[email protected]>
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 20, 2024
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.

Cultural Unicode text cannot be typed into Textbox.
4 participants