Skip to content

Always use MRU tab focus on tab close regardless of TabSwitcherMode#20272

Open
Anshikakalpana wants to merge 1 commit into
microsoft:mainfrom
Anshikakalpana:fix/mru-focus-on-tab-close-v2
Open

Always use MRU tab focus on tab close regardless of TabSwitcherMode#20272
Anshikakalpana wants to merge 1 commit into
microsoft:mainfrom
Anshikakalpana:fix/mru-focus-on-tab-close-v2

Conversation

@Anshikakalpana

Copy link
Copy Markdown

Summary

Always focus the MRU (most recently used) tab when closing the current tab, regardless of TabSwitcherMode setting.

References

Fixes #19819

Detailed Description

Removed the TabSwitcherMode check in _RemoveTab (TabManagement.cpp) so tab-close focus behavior is always MRU-based, decoupling it from the tab switcher preference as noted by @DHowett.

Validation Steps

  • Opened 3 tabs, navigated Tab3 → Tab1, closed Tab1
  • With fix: Tab3 focused (MRU)
  • Without fix: Tab2 focused (next in order)
record.mp4

PR Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal should focus the last used tab when closing currently focused tab

1 participant