KeyChord should just use the existing WinRT types instead of defining our own #1193

Closed
opened 2026-01-30 22:18:41 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (May 17, 2019).

Was looking at this in conjunction with resolving suggestions for #805. The XAML framework uses Windows::System::VirtualKey and Windows::System::VirtualKeyModifiers...is there a reason that Terminal should create their own types here that are now maintaining modifiers and enum values for something that already exists? Retrieving the keybindings with a KeyChord that has it's own values is proving to be challenging using them anywhere in the UI due to different types and not being able to cast them accordingly well.

Originally posted by @timheuer in https://github.com/microsoft/terminal/pull/748#issuecomment-493255788

Originally created by @zadjii-msft on GitHub (May 17, 2019). Was looking at this in conjunction with resolving suggestions for #805. The XAML framework uses ```Windows::System::VirtualKey``` and ```Windows::System::VirtualKeyModifiers```...is there a reason that Terminal should create their own types here that are now maintaining modifiers and enum values for something that already exists? Retrieving the keybindings with a ``KeyChord`` that has it's own values is proving to be challenging using them anywhere in the UI due to different types and not being able to cast them accordingly well. _Originally posted by @timheuer in https://github.com/microsoft/terminal/pull/748#issuecomment-493255788_
Author
Owner

@ghost commented on GitHub (Jul 14, 2021):

:tada:This issue was addressed in #10603, which has now been successfully released as Windows Terminal Preview v1.10.1933.0.🎉

Handy links:

@ghost commented on GitHub (Jul 14, 2021): :tada:This issue was addressed in #10603, which has now been successfully released as `Windows Terminal Preview v1.10.1933.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.10.1933.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1193