[PR #14221] Pipe DirectKey events into TerminalPage for Alt+Space #30013

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

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

State: closed
Merged: Yes


This pull request operates on the same theory as #14217, but at a lower
level. Carlos and I discovered that TerminalPage already has an
action-dispatching key preview handler, and that my implementation of
IDirectKeyListener handles focus-tree bubbling mostly correctly.

Because of that discovery, we learned we could move the
IDirectKeyListener into TerminalPage itself and not have to complicate
the SUI or the Command Palette with the DirectKey interface.

Validation:
When bound to Alt+Space, the system menu works in the command palette,
the settings UI, and in read-only panes.

Fixes #11970
Closes #14217
Fixes MSFT-41390832

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14221 **State:** closed **Merged:** Yes --- This pull request operates on the same theory as #14217, but at a lower level. Carlos and I discovered that TerminalPage *already* has an action-dispatching key preview handler, and that my implementation of `IDirectKeyListener` handles focus-tree bubbling mostly correctly. Because of that discovery, we learned we could move the `IDirectKeyListener` into TerminalPage itself and not have to complicate the SUI or the Command Palette with the DirectKey interface. Validation: When bound to Alt+Space, the system menu works in the command palette, the settings UI, and in read-only panes. Fixes #11970 Closes #14217 Fixes MSFT-41390832
claunia added the pull-request label 2026-01-31 09:38:09 +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#30013