Where to find the code that maps a shortcut to string #20357

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

Originally created by @brupelo on GitHub (Aug 12, 2023).

Where can I find the specific code used in the actions editor when assigning shortcuts?

vzWUkzVK5X

I'm curious and I'd like to learn how this is done behind the curtains because it behaves quite differently to other shortcut editors, for instance:

On a text editor:

  • If I press '+' it prints '+'
  • If I press shift + '+' prints '*'
  • If I press altgr + '+' prints ']'

On a the wt action editor on the other hand:

  • If I press '+' it prints 'plus'
  • If I press shift + '+' prints 'shift+plus'
  • If I press altgr + '+' prints 'ctrl+alt+plus'

Similar thing happens with all the keys

Originally created by @brupelo on GitHub (Aug 12, 2023). Where can I find the specific code used in the actions editor when assigning shortcuts? ![vzWUkzVK5X](https://github.com/microsoft/terminal/assets/18058492/28b2a7b6-706e-4f41-a886-5746eeb4347d) I'm curious and I'd like to learn how this is done behind the curtains because it behaves quite differently to other shortcut editors, for instance: On a text editor: - If I press '+' it prints '+' - If I press shift + '+' prints '*' - If I press altgr + '+' prints ']' On a the wt action editor on the other hand: - If I press '+' it prints 'plus' - If I press shift + '+' prints 'shift+plus' - If I press altgr + '+' prints 'ctrl+alt+plus' Similar thing happens with all the keys
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 07:11:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20357