mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:06:57 +00:00
parent
15f635d6e7
commit
0b640e3d7c
1 changed files with 7 additions and 1 deletions
|
@ -825,7 +825,13 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
|
|||
if (!this.visible) {
|
||||
return;
|
||||
}
|
||||
const hideInput = !!this._hideInput && this._items.length > 0; // do not allow to hide input without items
|
||||
let hideInput: boolean;
|
||||
if (this.ui.isScreenReaderOptimized()) {
|
||||
// Always show input if screen reader attached https://github.com/microsoft/vscode/issues/94360
|
||||
hideInput = false;
|
||||
} else {
|
||||
hideInput = !!this._hideInput && this._items.length > 0; // do not allow to hide input without items
|
||||
}
|
||||
dom.toggleClass(this.ui.container, 'hidden-input', hideInput);
|
||||
const visibilities: Visibilities = {
|
||||
title: !!this.title || !!this.step,
|
||||
|
|
Loading…
Reference in a new issue