[PR #924] Adding auto-UI shortcuts to menu based on keymappings #24406

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This modifies the UI menu to display the shortcuts for those options based on the new keybinding mappings from #748.

References

Enhances #748 to respond to custom keybinding mappings

PR Checklist

  • Closes Support remapping keybindings (#791)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

  • Added a few static methods to AppKeyBindings to find a keybinding from the loaded map and create a keyboard UI shortcut for it.
  • Two static helpers exist to map Terminal KeyChord values to WinRT VirtualKey and VirtualKeyModifiers. These should be removed/not needed once #877 is decided on (assuming it would go to WinRT APIs).
  • Special casing the comma character due to a bug in the XAML UI framework that is not yet resolved and on backlog for WinUI 3.0 roadmap (noted in comments)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/924 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This modifies the UI menu to display the shortcuts for those options based on the new keybinding mappings from #748. ## References Enhances #748 to respond to custom keybinding mappings ## PR Checklist * [x] Closes #791 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Requires documentation to be updated * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments * Added a few static methods to AppKeyBindings to find a keybinding from the loaded map and create a keyboard UI shortcut for it. * Two static helpers exist to map Terminal KeyChord values to WinRT VirtualKey and VirtualKeyModifiers. These should be removed/not needed once #877 is decided on (assuming it would go to WinRT APIs). * Special casing the comma character due to a bug in the XAML UI framework that is not yet resolved and on backlog for WinUI 3.0 roadmap (noted in comments)
claunia added the pull-request label 2026-01-31 09:03: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#24406