Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix next tab activation in focus mode upon tab closing #8549

Merged
3 commits merged into from
Dec 11, 2020

Conversation

Don-Vito
Copy link
Contributor

PR Checklist

Detailed Description of the Pull Request / Additional comments

Upon tab close the tabview is responsible to issue tab selection for the next active tab.
However this doesn't happen when tabview is hidden.
There was a special treatment for this scenario for full screen mode.
Added the same treatment to focus mode (as the tabview is not visible in this case as well).

Validation Steps Performed

Manual tests

@ghost ghost added 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. Priority-1 A description (P1) Product-Terminal The new Windows Terminal. labels Dec 10, 2020
@Don-Vito
Copy link
Contributor Author

@zadjii-msft - Happy Hanukkah!

@Don-Vito Don-Vito changed the title Fix loss of focus in focus mode upon tab closing Fix next tab activation in focus mode upon tab closing Dec 10, 2020
@Don-Vito
Copy link
Contributor Author

@zadjii-msft - not sure what static analyzer wants, I added a single word to the code 😄

@zadjii-msft zadjii-msft self-assigned this Dec 10, 2020
@DHowett
Copy link
Member

DHowett commented Dec 10, 2020

@Don-Vito (fixed in #8551)

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

WOW good catch. Thanks!

@zadjii-msft zadjii-msft removed their assignment Dec 11, 2020
@zadjii-msft zadjii-msft added the Needs-Second It's a PR that needs another sign-off label Dec 11, 2020
@carlos-zamora carlos-zamora added the AutoMerge Marked for automatic merge by the bot when requirements are met label Dec 11, 2020
@ghost
Copy link

ghost commented Dec 11, 2020

Hello @carlos-zamora!

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 8f60cfa into microsoft:main Dec 11, 2020
@@ -1136,13 +1136,16 @@ namespace winrt::TerminalApp::implementation
{
_lastTabClosedHandlers(*this, nullptr);
}
else if (_isFullscreen || _rearranging)
else if (_isFullscreen || _rearranging || _isInFocusMode)
Copy link
Member

Choose a reason for hiding this comment

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

idle thought: should this just be checking the visibility of TabView versus Collapsed? lol

@ghost ghost removed the Needs-Second It's a PR that needs another sign-off label Dec 11, 2020
@ghost
Copy link

ghost commented Jan 28, 2021

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

Handy links:

mpela81 pushed a commit to mpela81/terminal that referenced this pull request Jan 28, 2021
## PR Checklist
* [x] Closes microsoft#7916
* [x] CLA signed. 
* [ ] Tests added/passed
* [ ] Documentation updated. 
* [ ] Schema updated.
* [ ] I've discussed this with core contributors already. 

## Detailed Description of the Pull Request / Additional comments
Upon tab close the tabview is responsible to issue tab selection for the next active tab.
However this doesn't happen when tabview is hidden.
There was a special treatment for this scenario for full screen mode.
Added the same treatment to focus mode (as the tabview is not visible in this case as well).

## Validation Steps Performed
Manual tests
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-User Interface 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. Priority-1 A description (P1) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants