[PR #8979] [MERGED] Prevent context menu of tab renamer text box from canceling edit #27362

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/8979
Author: @Don-Vito
Created: 1/31/2021
Status: Merged
Merged: 2/1/2021
Merged by: @undefined

Base: mainHead: 8975-fix-renamer-context-menu


📝 Commits (1)

  • 84618bb Prevent context menu of tab renamer text box from canceling edit

📊 Changes

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

View changed files

📝 src/cascadia/TerminalApp/TabHeaderControl.cpp (+8 -0)

📄 Description

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • We dismiss the edit each time HeaderRenamerTextBox loses focus
  • Unfortunately, this applies also to scenario where the context menu
    (copy, paste, select, etc.) is open with the right-click
  • The fix is to ignore focus loss if HeaderRenamerTextBox().ContextFlyout() is open.
  • We can do it as upon the fly-out dismiss the text box regains the focus.

RenamerContextMenu


🔄 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/8979 **Author:** [@Don-Vito](https://github.com/Don-Vito) **Created:** 1/31/2021 **Status:** ✅ Merged **Merged:** 2/1/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `8975-fix-renamer-context-menu` --- ### 📝 Commits (1) - [`84618bb`](https://github.com/microsoft/terminal/commit/84618bb0c978b62b4e109e8021fdc9eabe944c7d) Prevent context menu of tab renamer text box from canceling edit ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TabHeaderControl.cpp` (+8 -0) </details> ### 📄 Description ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/8975 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments * We dismiss the edit each time `HeaderRenamerTextBox` loses focus * Unfortunately, this applies also to scenario where the context menu (copy, paste, select, etc.) is open with the right-click * The fix is to ignore focus loss if `HeaderRenamerTextBox().ContextFlyout()` is open. * We can do it as upon the fly-out dismiss the text box regains the focus. ![RenamerContextMenu](https://user-images.githubusercontent.com/4639110/106394866-90b10100-6407-11eb-8e92-627be4f70500.gif) --- <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:32 +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#27362