[PR #10988] [MERGED] Fix alt+space opening system menu and sending keys to terminal #28344

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10988
Author: @PankajBhojwani
Created: 8/19/2021
Status: Merged
Merged: 8/24/2021
Merged by: @undefined

Base: mainHead: dev/pabhoj/alt_space_fix


📝 Commits (5)

📊 Changes

1 file changed (+18 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+18 -0)

📄 Description

If both of the following are true

  1. alt+space is not explicitly unbound
  2. alt+space is not bound to a command

Then the window procedure will handle the alt+space to open up the context menu.
In this case, we need to make sure we don't send the keys to terminal.

Closes #10935


🔄 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/10988 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 8/19/2021 **Status:** ✅ Merged **Merged:** 8/24/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/alt_space_fix` --- ### 📝 Commits (5) - [`0307728`](https://github.com/microsoft/terminal/commit/0307728591f7711347d05670ada63db59a9dc881) works - [`6b68981`](https://github.com/microsoft/terminal/commit/6b68981aea152c1a3bca806866b93eb98061dc84) comment for clarity - [`929867d`](https://github.com/microsoft/terminal/commit/929867d6c15b39a3e80c4e9a43ceb2feb978ba6a) scancode - [`859d05e`](https://github.com/microsoft/terminal/commit/859d05e4f021d631ede31479bcd5fc91ce56b15f) Merge branch 'main' of https://github.com/microsoft/terminal into dev/pabhoj/alt_space_fix - [`36b0685`](https://github.com/microsoft/terminal/commit/36b0685bcacb94bf219501cd6dd1dcbc5dc07a57) mark todo ### 📊 Changes **1 file changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+18 -0) </details> ### 📄 Description If both of the following are true 1. alt+space is not explicitly unbound 2. alt+space is not bound to a command Then the window procedure will handle the alt+space to open up the context menu. In this case, we need to make sure we don't send the keys to terminal. Closes #10935 --- <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:27:55 +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#28344