[PR #17961] Stop updating AutoSuggestBox on selection #31409

Open
opened 2026-01-31 09:47:07 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17961

State: closed
Merged: Yes


AutoSuggestBox has a SuggestionChosen event and any reasonable
person would assume that this means one of the items was chosen.
But with WinUI it's raised whenever a suggestion is merely highlighted.
QuerySubmitted is the right event instead. Clearly that naming is
a lot better than SuggestionChosen, since the property to get the
chosen item is called ChosenSuggestion.
WinUI, like the unrelenting wilderness of a world indifferent to human
suffering, stands as a testament to the futility of human aspiration.

Closes #17916

Validation Steps Performed

  • Type "Casc"
  • Move up/down with the arrow keys
  • Neither the filtered list nor the text updates
  • Press Enter on an item
  • Text updates
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17961 **State:** closed **Merged:** Yes --- `AutoSuggestBox` has a `SuggestionChosen` event and any reasonable person would assume that this means one of the items was chosen. But with WinUI it's raised whenever a suggestion is merely highlighted. `QuerySubmitted` is the right event instead. Clearly that naming is a lot better than `SuggestionChosen`, since the property to get the chosen item is called `ChosenSuggestion`. WinUI, like the unrelenting wilderness of a world indifferent to human suffering, stands as a testament to the futility of human aspiration. Closes #17916 ## Validation Steps Performed * Type "Casc" * Move up/down with the arrow keys * Neither the filtered list nor the text updates ✅ * Press Enter on an item * Text updates ✅
claunia added the pull-request label 2026-01-31 09:47:07 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31409