Skip to content

Commit

Permalink
fix: Uno specific workaround for invalid assert in ComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Oct 5, 2024
1 parent 8ef5cbb commit b6fd348
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/ComboBox/ComboBox.partial.mux.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,9 @@ private void OnCharacterReceived(UIElement pSender, CharacterReceivedRoutedEvent
char keyCode;
keyCode = pArgs.Character;

if (!IsEditable)
// Uno specific: In WinUI this condition is only !IsEditable - however this seems to be wrong
// as the KeyDown handling also considers IsInSearchingMode.
if (!IsEditable && !IsInSearchingMode())
{
// Space should have been handled by now because we handle the Space key in the KeyDown event handler.
// NOTE: The 2 below specifies the map type, and maps VK to CHAR
Expand Down

0 comments on commit b6fd348

Please sign in to comment.