[PR #9057] [MERGED] Prevent command palette from closing on right click #27401

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9057
Author: @Don-Vito
Created: 2/5/2021
Status: Merged
Merged: 2/6/2021
Merged by: @undefined

Base: mainHead: preserve-cmdpal-oncontextflyout


📝 Commits (1)

  • 7caa950 Fix command palette from closing on right click

📊 Changes

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

View changed files

📝 src/cascadia/TerminalApp/CommandPalette.cpp (+6 -0)

📄 Description

The command palette is ephemeral and is dismissed if the focus
moves to an element which is not the palette's descendant.

Unfortunately, this breaks the (right-click) context menu,
as it is not a child of the palette
(popups are hosted on a separate root element).


🔄 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/9057 **Author:** [@Don-Vito](https://github.com/Don-Vito) **Created:** 2/5/2021 **Status:** ✅ Merged **Merged:** 2/6/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `preserve-cmdpal-oncontextflyout` --- ### 📝 Commits (1) - [`7caa950`](https://github.com/microsoft/terminal/commit/7caa950c2193d678ecf8879bdf525249ab7f273c) Fix command palette from closing on right click ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/CommandPalette.cpp` (+6 -0) </details> ### 📄 Description The command palette is ephemeral and is dismissed if the focus moves to an element which is not the palette's descendant. Unfortunately, this breaks the (right-click) context menu, as it is not a child of the palette (popups are hosted on a separate root element). --- <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:21:46 +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#27401