Skip to content

Commit

Permalink
Merge pull request #123170 from microsoft/merogge/delete
Browse files Browse the repository at this point in the history
Only focus tabs when shouldShowTabs
  • Loading branch information
Tyriar authored May 12, 2021
2 parents ca15099 + fb3e51a commit 26f617a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ export class TerminalTabbedView extends Disposable {
}

public focusTabs(): void {
if (!this._shouldShowTabs()) {
return;
}
this._terminalTabsFocusContextKey.set(true);
const selected = this._tabsWidget.getSelection();
this._tabsWidget.domFocus();
Expand Down

0 comments on commit 26f617a

Please sign in to comment.