[PR #15254] [MERGED] Add an action for manually invoking the control context menu #30539

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15254
Author: @zadjii-msft
Created: 4/27/2023
Status: Merged
Merged: 5/11/2023
Merged by: @DHowett

Base: mainHead: dev/migrie/f/context-menu-action


📝 Commits (5)

  • 414a6b9 this adds an action for manually invoking the control context menu
  • d9b60cd cleanup
  • 33f8000 this is cleaner
  • 74e7859 Merge remote-tracking branch 'origin/main' into dev/migrie/f/context-menu-action
  • 3909b97 use float math, cause why not

📊 Changes

8 files changed (+72 additions, -6 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+10 -0)
📝 src/cascadia/TerminalControl/TermControl.cpp (+48 -6)
📝 src/cascadia/TerminalControl/TermControl.h (+5 -0)
📝 src/cascadia/TerminalControl/TermControl.idl (+2 -0)
📝 src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp (+2 -0)
📝 src/cascadia/TerminalSettingsModel/AllShortcutActions.h (+1 -0)
📝 src/cascadia/TerminalSettingsModel/Resources/en-US/Resources.resw (+3 -0)
📝 src/cascadia/TerminalSettingsModel/defaults.json (+1 -0)

📄 Description

Adds

        { "command": "showContextMenu", "keys": "menu" },

as a default action. This will manually invoke the control context menu (from #14775), even with the setting disabled.

As discussed with Dustin.


🔄 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/15254 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 4/27/2023 **Status:** ✅ Merged **Merged:** 5/11/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/migrie/f/context-menu-action` --- ### 📝 Commits (5) - [`414a6b9`](https://github.com/microsoft/terminal/commit/414a6b9d4ca3d0bf54912a2a76c690b11d7762bb) this adds an action for manually invoking the control context menu - [`d9b60cd`](https://github.com/microsoft/terminal/commit/d9b60cd51d17ca87e0cf5cb461f78ffc35542afd) cleanup - [`33f8000`](https://github.com/microsoft/terminal/commit/33f80001f3df2267dbb86da658b96fbb42dfa201) this is cleaner - [`74e7859`](https://github.com/microsoft/terminal/commit/74e7859bc425a0bc97eb6849f7db7021b7a0dd84) Merge remote-tracking branch 'origin/main' into dev/migrie/f/context-menu-action - [`3909b97`](https://github.com/microsoft/terminal/commit/3909b972d0775334f8a65f49cbe1b1bbe2a0b17c) use float math, cause why not ### 📊 Changes **8 files changed** (+72 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+10 -0) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+48 -6) 📝 `src/cascadia/TerminalControl/TermControl.h` (+5 -0) 📝 `src/cascadia/TerminalControl/TermControl.idl` (+2 -0) 📝 `src/cascadia/TerminalSettingsModel/ActionAndArgs.cpp` (+2 -0) 📝 `src/cascadia/TerminalSettingsModel/AllShortcutActions.h` (+1 -0) 📝 `src/cascadia/TerminalSettingsModel/Resources/en-US/Resources.resw` (+3 -0) 📝 `src/cascadia/TerminalSettingsModel/defaults.json` (+1 -0) </details> ### 📄 Description Adds ``` { "command": "showContextMenu", "keys": "menu" }, ``` as a default action. This will manually invoke the control context menu (from #14775), even with the setting disabled. As discussed with Dustin. --- <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:41:27 +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#30539