[PR #4714] Accept String value for Keybindings's Keys #25897

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

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

State: closed
Merged: Yes


Summary of the Pull Request

keys in keybindings now accepts a string value. This assumes that you wanted a keychord of size 1. The schema and user docs were properly updated too.

This means that the following keybinding is now accepted in your profiles.json:

{ "command": "copy", "keys": "ctrl+c" }

as opposed to...

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

PR Checklist

Validation Steps Performed

  • tested the new schema
  • added test
**Original Pull Request:** https://github.com/microsoft/terminal/pull/4714 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request `keys` in `keybindings` now accepts a string value. This assumes that you wanted a keychord of size 1. The schema and user docs were properly updated too. This means that the following keybinding is now accepted in your profiles.json: ```json { "command": "copy", "keys": "ctrl+c" } ``` as opposed to... ```json { "command": "copy", "keys": [ "ctrl+c" ] } ``` ## PR Checklist * [X] Closes #4713 * [X] CLA signed. * [X] Tests added/passed * [X] Requires documentation to be updated ## Validation Steps Performed - [X] tested the new schema - [X] added test
claunia added the pull-request label 2026-01-31 09:12:30 +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#25897