Pane focus is lost after pane swap #18184
Labels
Area-User Interface
Issues pertaining to the user interface of the Console or Terminal
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Product-Terminal
The new Windows Terminal.
Milestone
Windows Terminal version
1.21.2911.0
Windows build number
10.0.22631.0
Other Software
No response
Steps to reproduce
Create a split pane, use keybinds to swap between them.
Expected Behavior
Pane shouldn't lose focus.
Actual Behavior
Pane loses focus, Terminal doesn't respect any inputs unless the window itself is refocused, here is visual example. I was able to reproduce it with empty $PROFILE (video recording wasn't though):
https://github.com/user-attachments/assets/08cb98dc-72cc-4c23-962e-f909668c184c
Video description:
So my uneducated guess is there are two different focuses in play there, usual Windows window focus and Terminal's pane focus. So, clicking on terminal or changing panes via keybind affects pane focus state, which sets the state in a way to cause unexpected behavior. But alt-tabbing it after focus is lost sets that state in a different way (or doesn't set it at all), which allows behavior to work as expected until it is re-set back via clicking or pane change.
The text was updated successfully, but these errors were encountered: