@@ -540,7 +540,12 @@ registerAction2(class extends InsertCellCommand {
540540 id : INSERT_CODE_CELL_ABOVE_COMMAND_ID ,
541541 title : localize ( 'notebookActions.insertCodeCellAbove' , "Insert Code Cell Above" ) ,
542542 category : NOTEBOOK_ACTIONS_CATEGORY ,
543- f1 : true
543+ f1 : true ,
544+ keybinding : {
545+ primary : KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . Enter ,
546+ when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
547+ weight : KeybindingWeight . WorkbenchContrib
548+ }
544549 } ,
545550 CellKind . Code ,
546551 'above' ) ;
@@ -572,7 +577,12 @@ registerAction2(class extends InsertCellCommand {
572577 title : localize ( 'notebookActions.insertCodeCellBelow' , "Insert Code Cell Below" ) ,
573578 category : NOTEBOOK_ACTIONS_CATEGORY ,
574579 icon : { id : 'codicon/add' } ,
575- f1 : true
580+ f1 : true ,
581+ keybinding : {
582+ primary : KeyMod . CtrlCmd | KeyCode . Enter ,
583+ when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
584+ weight : KeybindingWeight . WorkbenchContrib
585+ }
576586 } ,
577587 CellKind . Code ,
578588 'below' ) ;
@@ -770,7 +780,12 @@ registerAction2(class extends Action2 {
770780 title : localize ( 'notebookActions.moveCellUp' , "Move Cell Up" ) ,
771781 category : NOTEBOOK_ACTIONS_CATEGORY ,
772782 icon : { id : 'codicon/arrow-up' } ,
773- f1 : true
783+ f1 : true ,
784+ keybinding : {
785+ primary : KeyMod . Alt | KeyCode . UpArrow ,
786+ when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
787+ weight : KeybindingWeight . WorkbenchContrib
788+ }
774789 } ) ;
775790 }
776791
@@ -794,7 +809,12 @@ registerAction2(class extends Action2 {
794809 title : localize ( 'notebookActions.moveCellDown' , "Move Cell Down" ) ,
795810 category : NOTEBOOK_ACTIONS_CATEGORY ,
796811 icon : { id : 'codicon/arrow-down' } ,
797- f1 : true
812+ f1 : true ,
813+ keybinding : {
814+ primary : KeyMod . Alt | KeyCode . DownArrow ,
815+ when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
816+ weight : KeybindingWeight . WorkbenchContrib
817+ }
798818 } ) ;
799819 }
800820
@@ -969,7 +989,12 @@ registerAction2(class extends Action2 {
969989 id : COPY_CELL_UP_COMMAND_ID ,
970990 title : localize ( 'notebookActions.copyCellUp' , "Copy Cell Up" ) ,
971991 category : NOTEBOOK_ACTIONS_CATEGORY ,
972- f1 : true
992+ f1 : true ,
993+ keybinding : {
994+ primary : KeyMod . Alt | KeyMod . Shift | KeyCode . UpArrow ,
995+ when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
996+ weight : KeybindingWeight . WorkbenchContrib
997+ }
973998 } ) ;
974999 }
9751000
@@ -992,7 +1017,12 @@ registerAction2(class extends Action2 {
9921017 id : COPY_CELL_DOWN_COMMAND_ID ,
9931018 title : localize ( 'notebookActions.copyCellDown' , "Copy Cell Down" ) ,
9941019 category : NOTEBOOK_ACTIONS_CATEGORY ,
995- f1 : true
1020+ f1 : true ,
1021+ keybinding : {
1022+ primary : KeyMod . Alt | KeyMod . Shift | KeyCode . DownArrow ,
1023+ when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
1024+ weight : KeybindingWeight . WorkbenchContrib
1025+ }
9961026 } ) ;
9971027 }
9981028
0 commit comments