We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6e0b5 commit 80b873aCopy full SHA for 80b873a
src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
@@ -1554,7 +1554,18 @@ export class GettingStartedPage extends EditorPane {
1554
}
1555
1556
override focus() {
1557
- this.container.focus();
+ const active = document.activeElement;
1558
+
1559
+ let parent = this.container.parentElement;
1560
+ while (parent && parent !== active) {
1561
+ parent = parent.parentElement;
1562
+ }
1563
1564
+ if (parent) {
1565
+ // Only set focus if there is no other focued element outside this chain.
1566
+ // This prevents us from stealing back focus from other focused elements such as quick pick due to delayed load.
1567
+ this.container.focus();
1568
1569
1570
1571
0 commit comments