[PR #9056] Fix CommandPalette to prefer inner interactions over bindings #27409

Closed
opened 2026-01-31 09:21:48 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


PR Checklist

Detailed Description of the Pull Request / Additional comments

  • Currently TerminalPage registers on CmdPal key events:
    • To invoke bindings when the palette is open
    • Since some key combinations are not triggered by KeyDown
      it registers for PreviewKeyDown
  • As a result bindings might be preferred over navigation
    (e.g., ctrl+v will paste into Terminal rather than into search box)
  • To fix this, I moved all interactions inside the CmdPal into
    PreviewKeyDown as well
  • In addition, added specific handling for copy/paste
    which now allow to interact with search box even if not focused
**Original Pull Request:** https://github.com/microsoft/terminal/pull/9056 **State:** closed **Merged:** Yes --- ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/9044 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments * Currently TerminalPage registers on CmdPal key events: * To invoke bindings when the palette is open * Since some key combinations are not triggered by KeyDown it registers for PreviewKeyDown * As a result bindings might be preferred over navigation (e.g., ctrl+v will paste into Terminal rather than into search box) * To fix this, I moved all interactions inside the CmdPal into PreviewKeyDown as well * In addition, added specific handling for copy/paste which now allow to interact with search box even if not focused
claunia added the pull-request label 2026-01-31 09:21:48 +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#27409