[Settings UI] Adding an action with no key chord hits an assert #17619

Open
opened 2026-01-31 05:47:56 +00:00 by claunia · 0 comments
Owner

Originally created by @carlos-zamora on GitHub (Jun 2, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

main @ 9dca6c2

Windows build number

doesn't matter

Other Software

none

Steps to reproduce

  1. Go to Settings > Actions
  2. Add a new keybinding with an empty key chord
  3. hit save

Expected Behavior

We should require a key chord before adding the action.

Actual Behavior

[Debug mode] hit an assert in KeyChord: assert(_vkey || _scanCode);
[Otherwise]

  • nothing happens
  • if you try to add another keybinding like this, it detects a conflict with another action that has that "key chord"
Originally created by @carlos-zamora on GitHub (Jun 2, 2022). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version main @ 9dca6c2 ### Windows build number doesn't matter ### Other Software none ### Steps to reproduce 1. Go to Settings > Actions 2. Add a new keybinding with an empty key chord 3. hit save ### Expected Behavior We should require a key chord before adding the action. ### Actual Behavior [Debug mode] hit an assert in `KeyChord`: `assert(_vkey || _scanCode);` [Otherwise] - nothing happens - if you try to add another keybinding like this, it detects a conflict with another action that has that "key chord"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17619