Skip to content

Commit

Permalink
fix: return focus to least recently active tab #10533 (#10685)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxflam authored Jan 31, 2022
1 parent edeee9c commit b00dc83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/browser/shell/application-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1744,8 +1744,9 @@ export class ApplicationShell extends Widget {
if (!prevBar) {
return false;
}
const len = prevBar.titles.length;
prevBar.currentIndex = len - 1;
if (!prevBar.currentTitle) {
prevBar.currentIndex = prevBar.titles.length - 1;
}
if (prevBar.currentTitle) {
this.activateWidget(prevBar.currentTitle.owner.id);
}
Expand Down

0 comments on commit b00dc83

Please sign in to comment.