[PR #19238] Remove action handling from term control's preview key down #31761

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

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

State: closed
Merged: No


Summary of the Pull Request

  • TermControl's PreviewKeyDown now no longer handles keybindings
  • TerminalPage now has a PreviewKeyDown which checks for keybindings, and if the action required is a control-level action we execute it on the focused control (scroll, paste etc)

This way, we remove the previous flow of "control gets a keybinding and sends it over to the app which executes it back onto the control".

Validation Steps Performed

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19238 **State:** closed **Merged:** No --- ## Summary of the Pull Request - TermControl's `PreviewKeyDown` now no longer handles keybindings - TerminalPage now has a `PreviewKeyDown` which checks for keybindings, and if the action required is a control-level action we execute it on the focused control (scroll, paste etc) This way, we remove the previous flow of "control gets a keybinding and sends it over to the app which executes it back onto the control". ## Validation Steps Performed ## PR Checklist - [x] Closes #16589 - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:49:22 +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#31761