@@ -391,6 +391,7 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
391391 private _matchOnLabel = true ;
392392 private _sortByLabel = true ;
393393 private _autoFocusOnList = true ;
394+ private _autoFocusSecondEntry = false ;
394395 private _activeItems : T [ ] = [ ] ;
395396 private activeItemsUpdated = false ;
396397 private activeItemsToConfirm : T [ ] | null = [ ] ;
@@ -520,7 +521,6 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
520521 this . update ( ) ;
521522 }
522523
523-
524524 get autoFocusOnList ( ) {
525525 return this . _autoFocusOnList ;
526526 }
@@ -530,6 +530,14 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
530530 this . update ( ) ;
531531 }
532532
533+ get autoFocusSecondEntry ( ) {
534+ return this . _autoFocusSecondEntry ;
535+ }
536+
537+ set autoFocusSecondEntry ( autoFocusSecondEntry : boolean ) {
538+ this . _autoFocusSecondEntry = autoFocusSecondEntry ;
539+ }
540+
533541 get activeItems ( ) {
534542 return this . _activeItems ;
535543 }
@@ -851,10 +859,9 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
851859 this . ui . checkAll . checked = this . ui . list . getAllVisibleChecked ( ) ;
852860 this . ui . visibleCount . setCount ( this . ui . list . getVisibleCount ( ) ) ;
853861 this . ui . count . setCount ( this . ui . list . getCheckedCount ( ) ) ;
854- if ( isQuickNavigating && previousItemCount === 0 ) {
855- // quick navigate: automatically focus the second entry
856- // so that upon release the item is picked directly
862+ if ( this . _autoFocusSecondEntry && previousItemCount === 0 ) {
857863 this . ui . list . focus ( QuickInputListFocus . Second ) ;
864+ this . _autoFocusSecondEntry = false ;
858865 } else {
859866 this . trySelectFirst ( ) ;
860867 }
0 commit comments