File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/vs/editor/contrib/codeAction/browser Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ registerEditorCommand(new CodeActionContribution({
536
536
kbOpts : {
537
537
weight : weight + 100000 ,
538
538
primary : KeyCode . UpArrow ,
539
- secondary : [ KeyMod . CtrlCmd | KeyCode . KeyK ] ,
539
+ secondary : [ KeyMod . CtrlCmd | KeyCode . UpArrow ] ,
540
540
}
541
541
} ) ) ;
542
542
@@ -549,7 +549,7 @@ registerEditorCommand(new CodeActionContribution({
549
549
kbOpts : {
550
550
weight : weight + 100000 ,
551
551
primary : KeyCode . DownArrow ,
552
- secondary : [ KeyMod . CtrlCmd | KeyCode . KeyJ ] ,
552
+ secondary : [ KeyMod . CtrlCmd | KeyCode . DownArrow ] ,
553
553
}
554
554
} ) ) ;
555
555
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
279
279
this . codeActionList . value ?. layout ( height , maxWidth ) ;
280
280
281
281
// List selection
282
- if ( this . viewItems . length <= 1 && this . viewItems [ 0 ] . title === 'Learn more about JS/TS refactorings' ) {
282
+ if ( this . viewItems . length < 1 ) {
283
283
this . currSelectedItem = 0 ;
284
284
} else {
285
285
this . focusedEnabledItem = 0 ;
@@ -306,7 +306,7 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
306
306
protected focusPrevious ( ) {
307
307
if ( typeof this . focusedEnabledItem === 'undefined' ) {
308
308
this . focusedEnabledItem = this . viewItems [ 0 ] . index ;
309
- } else if ( this . viewItems . length <= 1 && this . viewItems [ 0 ] . title !== 'Learn more about JS/TS refactorings' ) {
309
+ } else if ( this . viewItems . length < 1 ) {
310
310
return false ;
311
311
}
312
312
@@ -329,7 +329,7 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
329
329
protected focusNext ( ) {
330
330
if ( typeof this . focusedEnabledItem === 'undefined' ) {
331
331
this . focusedEnabledItem = this . viewItems . length - 1 ;
332
- } else if ( this . viewItems . length <= 1 && this . viewItems [ 0 ] . title !== 'Learn more about JS/TS refactorings' ) {
332
+ } else if ( this . viewItems . length < 1 ) {
333
333
return false ;
334
334
}
335
335
You can’t perform that action at this time.
0 commit comments