MessageBox and UserPrompt hotkeys not working with non-latin characters

Fundamentals for Avalonia UI Forum

Posted 7 months ago by John Smith

If I use ActiproSoftware.Properties.Shared.SR.SetCustomString to localize for example UIButtonYesText to something with non-latin characters then hotkeys for buttons (Alt+Key) not working anymore.

Comments (2)

Answer - Posted 7 months ago by Actipro Software Support - Cleveland, OH, USA

Hi Josh,

We are just using standard Avalonia buttons on User Prompt and the string resource is set to the content. We don't do anything special to handle access key mapping.

Could you please try using the same non-latic characters with a standard Avalonia button and see if you observe the same behavior? If so, that is something the Avalonia team would need to address and you would need to file an issue on their GitHub repository.  I did find this one issue from August 2022 that sounds similar to what you are describing. It mentions a PR that might have helped with access key handing, but the issue is still open making me think that PR wasn't enough to resolve the problem.

Actipro Software Support

Posted 7 months ago by John Smith

Yes, sorry. It looks like this is an Avalonia bug

Add Comment

Please log in to a validated account to post comments.