[PR #10806] [MERGED] Passing through moveFocus keys when moving to another pane failed #28238

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10806
Author: @FWest98
Created: 7/27/2021
Status: Merged
Merged: 7/28/2021
Merged by: @undefined

Base: mainHead: fix/6219


📝 Commits (4)

  • 503ebb3 Passing through moveFocus keys when moving to another pane failed
  • 517f326 Fix spelling
  • 91ee903 Fix spelling
  • 197973c Incorporate feedback

📊 Changes

5 files changed (+18 additions, -12 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppActionHandlers.cpp (+5 -2)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+5 -3)
📝 src/cascadia/TerminalApp/TerminalPage.h (+1 -1)
📝 src/cascadia/TerminalApp/TerminalTab.cpp (+6 -5)
📝 src/cascadia/TerminalApp/TerminalTab.h (+1 -1)

📄 Description

Summary of the Pull Request

Implementation of #6219 with a small tweak, not just passing the keys when no panes are present, but passing on the keys when there is no other pane to move to. This enables another usecase: 2 panes in terminal split vertically; in one of these panes running tmux with two panes that are split horizontally. This allows the user to still navigate between tmux panes even though they have terminal panes open.

References

Not that I know of

PR Checklist

  • Closes Tmux doesn't refresh properly (#6219)
  • CLA signed.
  • Tests added/passed
  • Documentation updated. I don't think that's necessary
  • Schema updated. N/A
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan.

Detailed Description of the Pull Request / Additional comments

Implementation by propagating the boolean indicating success of moving focus all the way to the action handler, where this result will determine whether the action will be considered handled or not. When the action is not handled, the keychord will be propagated to the terminal.

Validation Steps Performed

Manual testing; all relevant unit tests still work


🔄 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/10806 **Author:** [@FWest98](https://github.com/FWest98) **Created:** 7/27/2021 **Status:** ✅ Merged **Merged:** 7/28/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `fix/6219` --- ### 📝 Commits (4) - [`503ebb3`](https://github.com/microsoft/terminal/commit/503ebb34a627fe9c9a5d0f9bc77b5ec131691ab9) Passing through moveFocus keys when moving to another pane failed - [`517f326`](https://github.com/microsoft/terminal/commit/517f3260ac819efd800669742f50a7db65627e71) Fix spelling - [`91ee903`](https://github.com/microsoft/terminal/commit/91ee903a102c1f7f3beefd0a2cc2fc48e52cf20f) Fix spelling - [`197973c`](https://github.com/microsoft/terminal/commit/197973caff0b20f7d89cb75583cb41118c119724) Incorporate feedback ### 📊 Changes **5 files changed** (+18 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppActionHandlers.cpp` (+5 -2) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+5 -3) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+1 -1) 📝 `src/cascadia/TerminalApp/TerminalTab.cpp` (+6 -5) 📝 `src/cascadia/TerminalApp/TerminalTab.h` (+1 -1) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Implementation of #6219 with a small tweak, not just passing the keys when no panes are present, but passing on the keys when there is no other pane to move to. This enables another usecase: 2 panes in terminal split vertically; in one of these panes running tmux with two panes that are split horizontally. This allows the user to still navigate between tmux panes even though they have terminal panes open. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References Not that I know of <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #6219 * [x] CLA signed. * [x] Tests added/passed * [x] Documentation updated. I don't think that's necessary * [x] Schema updated. N/A * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments Implementation by propagating the boolean indicating success of moving focus all the way to the action handler, where this result will determine whether the action will be considered handled or not. When the action is not handled, the keychord will be propagated to the terminal. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Manual testing; all relevant unit tests still work --- <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:13 +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#28238