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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14221
Author: @DHowett
Created: 10/14/2022
Status: Merged
Merged: 10/14/2022
Merged by: @undefined

Base: mainHead: dev/duhowett/space-alt


📝 Commits (1)

  • 2ded831 Pipe DirectKey events into TerminalPage for Alt+Space

📊 Changes

3 files changed (+27 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalApp/TerminalPage.cpp (+23 -0)
📝 src/cascadia/TerminalApp/TerminalPage.h (+2 -0)
📝 src/cascadia/TerminalApp/TerminalPage.idl (+2 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14221 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 10/14/2022 **Status:** ✅ Merged **Merged:** 10/14/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/space-alt` --- ### 📝 Commits (1) - [`2ded831`](https://github.com/microsoft/terminal/commit/2ded831122beb22d92875f9e7e63771a2a25aea3) Pipe DirectKey events into TerminalPage for Alt+Space ### 📊 Changes **3 files changed** (+27 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+23 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+2 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.idl` (+2 -1) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:38:08 +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#30008