TextBox and AutoSuggestBox doesn't accept AltGr input when hosted by Xaml island
See original GitHub issueDescribe the bug
When using xaml islands to host XAML user control with TextBox and/or AutoSuggestBox included (I didn’t test other input UI elements), these UI elements aren’t accepting ALT GR special characters. E.g. Using German keyboard layout, AltGr (right Alt on the keyboard) + q gives @
char.
Issue observed here: https://github.com/microsoft/PowerToys/issues/14099
Steps to reproduce the bug
- Take VS project that uses Xaml islands to host some custom user control
- Put TextBox and/or AutoSuggestBox into custom user control
- Change keyboard layout to some layout that has AltGr special characters (e.g. German)
- Observe that TextBox and AutoSuggestBox doesn’t accept AltGr special characters as input
Expected behavior
TextBox and AutoSuggestBox accepts AltGr special characters
Screenshots
No response
NuGet package version
No response
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
May 2020 Update (19041)
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
AutoSuggestBox Class (Windows.UI.Xaml.Controls)
Represents a text control that makes suggestions to users as they enter text using a keyboard or pen (using ink and handwriting recognition)....
Read more >AutoSuggestBox redoing the search after keyboard input
I'm trying to create a textbox thas search in a item list and it does return the search and list items, but when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@viniciusjarina Thanks a lot! It works now!
Have you seen anything similar to another issue we’re experiencing : https://github.com/microsoft/PowerToys/issues/14514 ? Check this comment in particular https://github.com/microsoft/PowerToys/issues/14514#issuecomment-984829204
Yeah, we migrated the UI to island + winui2 recently.
Anyway, I’m closing this one, as it wasn’t an actual bug. Thanks, once again!