Handle String value for Keybindings's Keys #6618

Closed
opened 2026-01-31 00:43:13 +00:00 by claunia · 2 comments
Owner

Originally created by @carlos-zamora on GitHub (Feb 24, 2020).

Description of the new feature/enhancement

In the following example...

"keybindings": [
  { "command": "copy", "keys": "ctrl+c" }
]

the desired keybinding is not added because keys accepts an array type. The user receives no notification of this being dropped.

Proposed technical implementation details

We have two options here...

  1. throw a warning telling you that this is being dropped
  2. accept the string value and assume it's a key chord of size 1

I propose we do the second one. It's easier to implement and not annoying.

Originally created by @carlos-zamora on GitHub (Feb 24, 2020). # Description of the new feature/enhancement In the following example... ```json "keybindings": [ { "command": "copy", "keys": "ctrl+c" } ] ``` the desired keybinding is not added because `keys` accepts an array type. The user receives no notification of this being dropped. # Proposed technical implementation details We have two options here... 1. throw a warning telling you that this is being dropped 2. accept the string value and assume it's a key chord of size 1 I propose we do the second one. It's easier to implement and not annoying.
claunia added the Resolution-Fix-CommittedArea-SettingsIssue-TaskProduct-Terminal labels 2026-01-31 00:43:13 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 24, 2020):

Wow that's so obvious. Lets just do 2. That's so easy.

@zadjii-msft commented on GitHub (Feb 24, 2020): Wow that's so obvious. Lets just do 2. That's so easy.
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 24, 2020):

I laughed aloud at that response . . . and then moved this into the v1 milestone 😉

@DHowett-MSFT commented on GitHub (Feb 24, 2020): I laughed aloud at that response . . . and then moved this into the v1 milestone :wink:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6618