@@ -386,7 +386,7 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
386386 private _matchOnLabel = true ;
387387 private _sortByLabel = true ;
388388 private _autoFocusOnList = true ;
389- private _itemActivation = ItemActivation . FIRST ;
389+ private _itemActivation = this . ui . isScreenReaderOptimized ( ) ? ItemActivation . NONE /* https://github.com/microsoft/vscode/issues/57501 */ : ItemActivation . FIRST ;
390390 private _activeItems : T [ ] = [ ] ;
391391 private activeItemsUpdated = false ;
392392 private activeItemsToConfirm : T [ ] | null = [ ] ;
@@ -637,7 +637,7 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
637637
638638 private trySelectFirst ( ) {
639639 if ( this . autoFocusOnList ) {
640- if ( ! this . ui . isScreenReaderOptimized ( ) && ! this . canSelectMany ) {
640+ if ( ! this . canSelectMany ) {
641641 this . ui . list . focus ( QuickInputListFocus . First ) ;
642642 }
643643 }
@@ -867,6 +867,9 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
867867 this . ui . visibleCount . setCount ( this . ui . list . getVisibleCount ( ) ) ;
868868 this . ui . count . setCount ( this . ui . list . getCheckedCount ( ) ) ;
869869 switch ( this . _itemActivation ) {
870+ case ItemActivation . NONE :
871+ this . _itemActivation = ItemActivation . FIRST ; // only valid once, then unset
872+ break ;
870873 case ItemActivation . SECOND :
871874 this . ui . list . focus ( QuickInputListFocus . Second ) ;
872875 this . _itemActivation = ItemActivation . FIRST ; // only valid once, then unset
0 commit comments