quickInput: Always show input if screen reader attached

#94360
This commit is contained in:
isidor 2020-04-06 11:03:58 +02:00
parent 15f635d6e7
commit 0b640e3d7c

View file

@ -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,