Focus starts on titlebar when opening a profile from a nested dropdown entry #19587

Closed
opened 2026-01-31 06:48:02 +00:00 by claunia · 4 comments
Owner

Originally created by @kkostrzewa-coupa on GitHub (Mar 27, 2023).

Windows Terminal version

1.17.1023

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

Adding a profile like this in wt 1.16.10261.0 starts the profile with keyboard focus on the command shell

When I use the preview version, focus is on the titlebar, so I have to tab 2x to switch to the command shell

            {
                "commandline": "ssh -i \"%USERPROFILE%\\.ssh\\my-super-secret-key.pem\" ec2-user@10.161.0.101",
                "experimental.retroTerminalEffect": true,
                "guid": "{8e690e45-db6d-47c5-919a-68a86077f9dd}",
                "hidden": false,
                "name": "ec2:kpk-my-super-awesome-ec2-name",
                "suppressApplicationTitle": true
            }

I am using the fabulous new folders feature

        {
            "type": "folder",
            "name": "ssh",
            "entries": [
                {
                    "profile": "ec2:kpk-my-super-awesome-ec2-name",
                    "type": "profile"
                }
            ]
        }

Expected Behavior

focus in command shell

Actual Behavior

focus in titlebar

Originally created by @kkostrzewa-coupa on GitHub (Mar 27, 2023). ### Windows Terminal version 1.17.1023 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce Adding a profile like this in wt 1.16.10261.0 starts the profile with keyboard focus on the command shell When I use the preview version, focus is on the titlebar, so I have to tab 2x to switch to the command shell ```json { "commandline": "ssh -i \"%USERPROFILE%\\.ssh\\my-super-secret-key.pem\" ec2-user@10.161.0.101", "experimental.retroTerminalEffect": true, "guid": "{8e690e45-db6d-47c5-919a-68a86077f9dd}", "hidden": false, "name": "ec2:kpk-my-super-awesome-ec2-name", "suppressApplicationTitle": true } ``` I am using the fabulous new folders feature ```json { "type": "folder", "name": "ssh", "entries": [ { "profile": "ec2:kpk-my-super-awesome-ec2-name", "type": "profile" } ] } ``` ### Expected Behavior focus in command shell ### Actual Behavior focus in titlebar
Author
Owner

@kkostrzewa-coupa commented on GitHub (Mar 27, 2023):

This appears to be a side effect of using folders. When I remove the folder entry from newTabMenu, focus starts in the shell.

@kkostrzewa-coupa commented on GitHub (Mar 27, 2023): This appears to be a side effect of using folders. When I remove the folder entry from newTabMenu, focus starts in the shell.
Author
Owner

@zadjii-msft commented on GitHub (Mar 27, 2023):

INTERESTING

I can totally repro this. That's wild!

Thanks for the report!

@zadjii-msft commented on GitHub (Mar 27, 2023): INTERESTING I can totally repro this. That's wild! Thanks for the report!
Author
Owner

@kkostrzewa commented on GitHub (Mar 27, 2023):

If this is in help wanted, I can take a look, as I'm off my regular 9-5 job this week. Bear with me as I haven't built wt yet. (This is from op's personal github account)

@kkostrzewa commented on GitHub (Mar 27, 2023): If this is in help wanted, I can take a look, as I'm off my regular 9-5 job this week. Bear with me as I haven't built wt yet. (This is from op's personal github account)
Author
Owner

@kkostrzewa commented on GitHub (Mar 31, 2023):

@zadjii-msft I think I fixed this with https://github.com/microsoft/terminal/compare/main...kkostrzewa:microsoft-terminal:bug/15049-folder-focus-problem. Will PR.

@kkostrzewa commented on GitHub (Mar 31, 2023): @zadjii-msft I think I fixed this with https://github.com/microsoft/terminal/compare/main...kkostrzewa:microsoft-terminal:bug/15049-folder-focus-problem. Will PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19587