[PR #10666] Introduce vk() and sc() key chord specifiers #28181

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

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

State: closed
Merged: Yes


This commit introduces an alternative to specifying key bindings as a combination of key modifiers and a character. It allows you to specify an explicit virtual key as vk(nnn).
Additionally this commit makes it possible to bind actions to scan codes. As scan code 41 appears to be the button below the Escape key on virtually all keyboards, we'll be able to bind the quake mode hotkey to win+sc(41) and have it work consistently across most if not all keyboard layouts.

PR Checklist

Validation Steps Performed

The following was tested both on US and DE keyboard layouts:

  • Ctrl+, opens settings ✔️
  • Win+` opens quake mode window ✔️
  • Ctrl+plus/minus increase/decrease font size ✔️
**Original Pull Request:** https://github.com/microsoft/terminal/pull/10666 **State:** closed **Merged:** Yes --- This commit introduces an alternative to specifying key bindings as a combination of key modifiers and a character. It allows you to specify an explicit virtual key as `vk(nnn)`. Additionally this commit makes it possible to bind actions to scan codes. As scan code 41 appears to be the button below the Escape key on virtually all keyboards, we'll be able to bind the quake mode hotkey to `win+sc(41)` and have it work consistently across most if not all keyboard layouts. ## PR Checklist * [x] Closes #7539, Closes #10203 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed The following was tested both on US and DE keyboard layouts: * Ctrl+, opens settings ✔️ * Win+` opens quake mode window ✔️ * Ctrl+plus/minus increase/decrease font size ✔️
claunia added the pull-request label 2026-01-31 09:26:49 +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#28181