Pass through moveFocus keys when the user has no panes #8623

Open
opened 2026-01-31 01:34:03 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (May 27, 2020).

You know, you've just inspired an idea - if the user has no panes, then the Terminal could probably pass the Alt+Arrow through, similar to the way that Ctrl+C for copy sends a ^C when there's no text selected.

Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/issues/3729#issuecomment-634658353

If the user only has one pane (the whole tab), then the moveFocus keybindings should probably set e.Handled(false), so the keys can fall through to the underlying command-line app. I'd bet that would mitigate the need for tmux users to unbind all the alt+arrow keys, since I doubt they're using our panes with tmux.

Originally created by @zadjii-msft on GitHub (May 27, 2020). You know, you've just inspired an idea - if the user has _no_ panes, then the Terminal could probably pass the Alt+Arrow through, similar to the way that Ctrl+C for copy sends a ^C when there's no text selected. _Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/issues/3729#issuecomment-634658353_ If the user only has one pane (the whole tab), then the `moveFocus` keybindings should probably set `e.Handled(false)`, so the keys can fall through to the underlying command-line app. I'd bet that would mitigate the need for tmux users to unbind all the alt+arrow keys, since I doubt they're using our panes with `tmux`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8623