mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-28 23:58:23 +01:00
@@ -613,7 +613,7 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
|
||||
|
||||
// Pass Focus to Viewer
|
||||
this.tree.domFocus();
|
||||
} else if (this.tree) {
|
||||
} else if (this.tree && this.treeContainer && !this.treeContainer.classList.contains('hide')) {
|
||||
this.tree.domFocus();
|
||||
} else {
|
||||
this.domNode.focus();
|
||||
@@ -1017,6 +1017,9 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
|
||||
this.domNode.setAttribute('tabindex', '0');
|
||||
} else if (this.treeContainer) {
|
||||
this.treeContainer.classList.remove('hide');
|
||||
if (this.domNode === DOM.getActiveElement()) {
|
||||
this.focus();
|
||||
}
|
||||
this.domNode.removeAttribute('tabindex');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user