Skip to content

Don't yeet focus to the control when the tab renamer is opened#10114

Merged
3 commits merged intomainfrom
dev/migrie/b/10112-dont-yeet-focus-from-tab-renamer
May 18, 2021
Merged

Don't yeet focus to the control when the tab renamer is opened#10114
3 commits merged intomainfrom
dev/migrie/b/10112-dont-yeet-focus-from-tab-renamer

Conversation

@zadjii-msft
Copy link
Member

This is a hotfix to #10048. When the tab renamer is opened, we need to make sure to not immediately steal focus from it.

@ghost ghost added Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree. labels May 17, 2021
// GH#10112 - if we're opening the tab renamer, don't
// immediately toss focus to the control. We don't want to steal
// focus from the tab renamer.
if (!tab->_headerControl.InRename())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we gonna have to start slapping "BODGY" on our own code that is workaround for other code of ours being wrong

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sure is possible

@DHowett DHowett added the Needs-Second It's a PR that needs another sign-off label May 17, 2021
@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label May 18, 2021
@ghost
Copy link

ghost commented May 18, 2021

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 24f80bd into main May 18, 2021
@ghost ghost deleted the dev/migrie/b/10112-dont-yeet-focus-from-tab-renamer branch May 18, 2021 18:49
DHowett pushed a commit that referenced this pull request May 24, 2021
This is a hotfix to #10048. When the tab renamer is opened, we need to make sure to not immediately steal focus from it.

* [x] closes #10112
* [x] I work here
* [x] tested manually

(cherry picked from commit 24f80bd)
@ghost
Copy link

ghost commented May 25, 2021

🎉Windows Terminal v1.8.1444.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented May 25, 2021

🎉Windows Terminal Preview v1.9.1445.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-UserInterface Issues pertaining to the user interface of the Console or Terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off Priority-1 A description (P1) Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Right-click on a tab... "Rename Tab" broken after #10048

3 participants