[PR #9543] Give Command ownership over KeyChord #27624

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

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

State: closed
Merged: No


Transfers ownership of a KeyChord to Command. This includes...

  • Adding an observable getter/setter for KeyChord to Command
  • Add deserialization logic to handle keys
  • Remove recursive updating of Command::KeyChordText
  • removing Command::KeyChordText which caused...
    • Command palette needs to convert the KeyChord to a string
    • Add a few more converters to handle this in the Actions page (SUI)

KeyChordSerialization experienced a minor refactor. I introduced the ConversionTrait<KeyChord> there, and simply use the existing FromString and ToString logic to handle everything.

References

#9428 - Spec

Validation Steps Performed

Checked the following...

  • Command Palette
    • key chord text is still displayed, when applicable
  • Actions Page
    • only actions with keys are displayed
**Original Pull Request:** https://github.com/microsoft/terminal/pull/9543 **State:** closed **Merged:** No --- Transfers ownership of a `KeyChord` to `Command`. This includes... - Adding an observable getter/setter for `KeyChord` to `Command` - Add deserialization logic to handle `keys` - Remove recursive updating of `Command::KeyChordText` - removing `Command::KeyChordText` which caused... - Command palette needs to convert the `KeyChord` to a string - Add a few more converters to handle this in the Actions page (SUI) `KeyChordSerialization` experienced a minor refactor. I introduced the `ConversionTrait<KeyChord>` there, and simply use the existing `FromString` and `ToString` logic to handle everything. ## References #9428 - Spec ## Validation Steps Performed Checked the following... - Command Palette - key chord text is still displayed, when applicable - Actions Page - only actions with keys are displayed
claunia added the pull-request label 2026-01-31 09:23: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#27624