[PR #9206] [MERGED] Enable text search on combo boxes #27472

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9206
Author: @carlos-zamora
Created: 2/18/2021
Status: Merged
Merged: 2/19/2021
Merged by: @undefined

Base: mainHead: dev/cazamor/sui/to-string


📝 Commits (3)

  • cff1363 Enable text search on combo boxes
  • ac91254 add IStringable to dictionary
  • a5333b5 we don't actually need ToString in the IDL

📊 Changes

7 files changed (+20 additions, -3 deletions)

View changed files

📝 .github/actions/spelling/dictionary/apis.txt (+1 -0)
📝 src/cascadia/TerminalSettingsEditor/EnumEntry.h (+5 -0)
📝 src/cascadia/TerminalSettingsEditor/EnumEntry.idl (+1 -1)
📝 src/cascadia/TerminalSettingsModel/ColorScheme.h (+5 -0)
📝 src/cascadia/TerminalSettingsModel/ColorScheme.idl (+1 -1)
📝 src/cascadia/TerminalSettingsModel/Profile.h (+6 -0)
📝 src/cascadia/TerminalSettingsModel/Profile.idl (+1 -1)

📄 Description

ComboBox has a text search function that allows users to type letters, and the ComboBoxItem starting with those letters is shown. In order to enable this functionality, the underlying items must be IStringable. This exposes a ToString() function and fixes all of our issues.

This PR adds the IStringable interface to ColorScheme, Profile, and EnumEntry.

References

#6800 - Settings UI Epic
#8768 - Keyboard Navigation
https://github.com/microsoft/microsoft-ui-xaml/issues/4182 - discussion with WinUI about how to overcome this issue

Validation Steps Performed

Tested...

  • Launch > Default Profile
  • Color Schemes > Name
  • Profile > Appearance > Color scheme
  • Profile > Appearance > Font weight

Also tested radio buttons, but those still don't work, unfortunately. Looks like they don't have the same underlying mechanism.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9206 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 2/18/2021 **Status:** ✅ Merged **Merged:** 2/19/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/sui/to-string` --- ### 📝 Commits (3) - [`cff1363`](https://github.com/microsoft/terminal/commit/cff13630cc1af16eb3028e0078d6e3e53dfedb2e) Enable text search on combo boxes - [`ac91254`](https://github.com/microsoft/terminal/commit/ac9125402bcb29ffee16faba17f83dc6d068299c) add IStringable to dictionary - [`a5333b5`](https://github.com/microsoft/terminal/commit/a5333b5c0b74faac2c272dd5b7d571e7683d79e9) we don't actually need ToString in the IDL ### 📊 Changes **7 files changed** (+20 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/dictionary/apis.txt` (+1 -0) 📝 `src/cascadia/TerminalSettingsEditor/EnumEntry.h` (+5 -0) 📝 `src/cascadia/TerminalSettingsEditor/EnumEntry.idl` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/ColorScheme.h` (+5 -0) 📝 `src/cascadia/TerminalSettingsModel/ColorScheme.idl` (+1 -1) 📝 `src/cascadia/TerminalSettingsModel/Profile.h` (+6 -0) 📝 `src/cascadia/TerminalSettingsModel/Profile.idl` (+1 -1) </details> ### 📄 Description `ComboBox` has a text search function that allows users to type letters, and the `ComboBoxItem` starting with those letters is shown. In order to enable this functionality, the underlying items must be `IStringable`. This exposes a `ToString()` function and fixes all of our issues. This PR adds the `IStringable` interface to `ColorScheme`, `Profile`, and `EnumEntry`. ## References #6800 - Settings UI Epic #8768 - Keyboard Navigation https://github.com/microsoft/microsoft-ui-xaml/issues/4182 - discussion with WinUI about how to overcome this issue ## Validation Steps Performed Tested... - Launch > Default Profile - Color Schemes > Name - Profile > Appearance > Color scheme - Profile > Appearance > Font weight Also tested radio buttons, but those still don't work, unfortunately. Looks like they don't have the same underlying mechanism. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:22:10 +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#27472