File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/vs/platform/quickinput/browser Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -831,7 +831,10 @@ export class QuickPick<T extends IQuickPickItem> extends QuickInput implements I
831
831
this . visibleDisposables . add ( ( this . _hideInput ? this . ui . list : this . ui . inputBox ) . onKeyDown ( ( event : KeyboardEvent | StandardKeyboardEvent ) => {
832
832
switch ( event . keyCode ) {
833
833
case KeyCode . DownArrow :
834
- if ( isMacintosh ? event . metaKey : event . altKey ) {
834
+ // Don't support focusing next separator when quick navigate is enabled
835
+ // ref: https://github.com/microsoft/vscode/issues/210461
836
+ // TODO: Could we do this in a way that could play nice with quick navigate?
837
+ if ( this . quickNavigate === undefined && ( isMacintosh ? event . metaKey : event . altKey ) ) {
835
838
this . ui . list . focus ( QuickInputListFocus . NextSeparator ) ;
836
839
} else {
837
840
this . ui . list . focus ( QuickInputListFocus . Next ) ;
@@ -842,7 +845,8 @@ export class QuickPick<T extends IQuickPickItem> extends QuickInput implements I
842
845
dom . EventHelper . stop ( event , true ) ;
843
846
break ;
844
847
case KeyCode . UpArrow :
845
- if ( isMacintosh ? event . metaKey : event . altKey ) {
848
+ // Don't support focusing next separator when quick navigate is enabled
849
+ if ( this . quickNavigate === undefined && ( isMacintosh ? event . metaKey : event . altKey ) ) {
846
850
this . ui . list . focus ( QuickInputListFocus . PreviousSeparator ) ;
847
851
} else {
848
852
this . ui . list . focus ( QuickInputListFocus . Previous ) ;
You can’t perform that action at this time.
0 commit comments