question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextBox and AutoSuggestBox doesn't accept AltGr input when hosted by Xaml island

See original GitHub issue

Describe 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

  1. Take VS project that uses Xaml islands to host some custom user control
  2. Put TextBox and/or AutoSuggestBox into custom user control
  3. Change keyboard layout to some layout that has AltGr special characters (e.g. German)
  4. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stefansjfwcommented, Dec 9, 2021

@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

0reactions
stefansjfwcommented, Dec 9, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found