moveFocus different behaviour which depends on direction #14327

Closed
opened 2026-01-31 04:07:13 +00:00 by claunia · 2 comments
Owner

Originally created by @krhubert on GitHub (Jun 24, 2021).

Windows Terminal version (or Windows build number)

1.8.1521.0

Other Software

No response

Steps to reproduce

Bind any shortcut to move focus

        {
            "command": 
            {
                "action": "moveFocus",
                "direction": "left"
            },
            "keys": "alt+h"
        },
        {
            "command": 
            {
                "action": "moveFocus",
                "direction": "right"
            },
            "keys": "alt+l"
        },

then open 3 panes and try to move left and right

|---|---|---|
|   |   |   |
| 1 | 2 | 3 |
|   |   |   |
|___|___|___|
  ^
  alt+l moves focus to 2nd, then 3rd panel

|---|---|---|
|   |   |   |
| 1 | 2 | 3 |
|   |   |   |
|___|___|___|
          ^
          alt+h moves focus to 1st panel, it skips 2nd one

Expected Behavior

moveFocus left should jump to 2nd then 1st panel

Actual Behavior

moveFocus left jumps to 1st panel

Originally created by @krhubert on GitHub (Jun 24, 2021). ### Windows Terminal version (or Windows build number) 1.8.1521.0 ### Other Software _No response_ ### Steps to reproduce Bind any shortcut to move focus ``` { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+h" }, { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+l" }, ``` then open 3 panes and try to move left and right ``` |---|---|---| | | | | | 1 | 2 | 3 | | | | | |___|___|___| ^ alt+l moves focus to 2nd, then 3rd panel |---|---|---| | | | | | 1 | 2 | 3 | | | | | |___|___|___| ^ alt+h moves focus to 1st panel, it skips 2nd one ``` ### Expected Behavior moveFocus left should jump to 2nd then 1st panel ### Actual Behavior moveFocus left jumps to 1st panel
claunia added the Resolution-Duplicate label 2026-01-31 04:07:13 +00:00
Author
Owner

@PankajBhojwani commented on GitHub (Jun 24, 2021):

Yep, currently we move focus to the first pane on the other side of the separator. We are tracking the issue over at /dup #2398

@PankajBhojwani commented on GitHub (Jun 24, 2021): Yep, currently we move focus to the first pane on the other side of the separator. We are tracking the issue over at /dup #2398
Author
Owner

@ghost commented on GitHub (Jun 24, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 24, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14327