mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
fixes #118045
This commit is contained in:
parent
f9d92f0fc6
commit
e353502fb9
|
@ -834,7 +834,9 @@ export class SearchView extends ViewPane {
|
||||||
if (next === selected) {
|
if (next === selected) {
|
||||||
this.tree.setFocus([]);
|
this.tree.setFocus([]);
|
||||||
}
|
}
|
||||||
this.tree.setFocus([next], getSelectionKeyboardEvent(undefined, false, false));
|
const event = getSelectionKeyboardEvent(undefined, false, false);
|
||||||
|
this.tree.setFocus([next], event);
|
||||||
|
this.tree.setSelection([next], event);
|
||||||
this.tree.reveal(next);
|
this.tree.reveal(next);
|
||||||
const ariaLabel = this.treeAccessibilityProvider.getAriaLabel(next);
|
const ariaLabel = this.treeAccessibilityProvider.getAriaLabel(next);
|
||||||
if (ariaLabel) { aria.alert(ariaLabel); }
|
if (ariaLabel) { aria.alert(ariaLabel); }
|
||||||
|
@ -875,7 +877,9 @@ export class SearchView extends ViewPane {
|
||||||
if (prev === selected) {
|
if (prev === selected) {
|
||||||
this.tree.setFocus([]);
|
this.tree.setFocus([]);
|
||||||
}
|
}
|
||||||
this.tree.setFocus([prev], getSelectionKeyboardEvent(undefined, false, false));
|
const event = getSelectionKeyboardEvent(undefined, false, false);
|
||||||
|
this.tree.setFocus([prev], event);
|
||||||
|
this.tree.setSelection([prev], event);
|
||||||
this.tree.reveal(prev);
|
this.tree.reveal(prev);
|
||||||
const ariaLabel = this.treeAccessibilityProvider.getAriaLabel(prev);
|
const ariaLabel = this.treeAccessibilityProvider.getAriaLabel(prev);
|
||||||
if (ariaLabel) { aria.alert(ariaLabel); }
|
if (ariaLabel) { aria.alert(ariaLabel); }
|
||||||
|
@ -1102,7 +1106,9 @@ export class SearchView extends ViewPane {
|
||||||
this.tree.domFocus();
|
this.tree.domFocus();
|
||||||
const selection = this.tree.getSelection();
|
const selection = this.tree.getSelection();
|
||||||
if (selection.length === 0) {
|
if (selection.length === 0) {
|
||||||
this.tree.focusNext(undefined, undefined, getSelectionKeyboardEvent());
|
const event = getSelectionKeyboardEvent();
|
||||||
|
this.tree.focusNext(undefined, undefined, event);
|
||||||
|
this.tree.setSelection(this.tree.getFocus(), event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue