@@ -18,7 +18,7 @@ import { InputFocusedContext, InputFocusedContextKey } from 'vs/platform/context
1818import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
1919import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
2020import { IQuickInputService , IQuickPickItem , QuickPickInput } from 'vs/platform/quickinput/common/quickInput' ;
21- import { BaseCellRenderTemplate , CellEditState , ICellViewModel , INotebookEditor , NOTEBOOK_CELL_EDITABLE , NOTEBOOK_CELL_MARKDOWN_EDIT_MODE , NOTEBOOK_CELL_TYPE , NOTEBOOK_EDITOR_EDITABLE , NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK , NOTEBOOK_EDITOR_FOCUSED , NOTEBOOK_EDITOR_RUNNABLE , NOTEBOOK_IS_ACTIVE_EDITOR , NOTEBOOK_CELL_HAS_OUTPUTS , CellFocusMode , NOTEBOOK_OUTPUT_FOCUSED } from 'vs/workbench/contrib/notebook/browser/notebookBrowser' ;
21+ import { BaseCellRenderTemplate , CellEditState , ICellViewModel , INotebookEditor , NOTEBOOK_CELL_EDITABLE , NOTEBOOK_CELL_MARKDOWN_EDIT_MODE , NOTEBOOK_CELL_TYPE , NOTEBOOK_EDITOR_EDITABLE , NOTEBOOK_EDITOR_EXECUTING_NOTEBOOK , NOTEBOOK_EDITOR_FOCUSED , NOTEBOOK_EDITOR_RUNNABLE , NOTEBOOK_IS_ACTIVE_EDITOR , NOTEBOOK_CELL_HAS_OUTPUTS , CellFocusMode , NOTEBOOK_OUTPUT_FOCUSED , NOTEBOOK_CELL_LIST_FOCUSED } from 'vs/workbench/contrib/notebook/browser/notebookBrowser' ;
2222import { CellKind , NOTEBOOK_EDITOR_CURSOR_BOUNDARY , NotebookCellRunState } from 'vs/workbench/contrib/notebook/common/notebookCommon' ;
2323import { INotebookService } from 'vs/workbench/contrib/notebook/common/notebookService' ;
2424import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
@@ -154,7 +154,7 @@ registerAction2(class extends NotebookAction {
154154 id : EXECUTE_CELL_COMMAND_ID ,
155155 title : localize ( 'notebookActions.execute' , "Execute Cell" ) ,
156156 keybinding : {
157- when : NOTEBOOK_EDITOR_FOCUSED ,
157+ when : NOTEBOOK_CELL_LIST_FOCUSED ,
158158 primary : KeyMod . WinCtrl | KeyCode . Enter ,
159159 win : {
160160 primary : KeyMod . CtrlCmd | KeyMod . Alt | KeyCode . Enter
@@ -227,7 +227,7 @@ registerAction2(class extends NotebookAction {
227227 id : EXECUTE_CELL_SELECT_BELOW ,
228228 title : localize ( 'notebookActions.executeAndSelectBelow' , "Execute Notebook Cell and Select Below" ) ,
229229 keybinding : {
230- when : NOTEBOOK_EDITOR_FOCUSED ,
230+ when : NOTEBOOK_CELL_LIST_FOCUSED ,
231231 primary : KeyMod . Shift | KeyCode . Enter ,
232232 weight : EDITOR_WIDGET_ACTION_WEIGHT
233233 } ,
@@ -263,7 +263,7 @@ registerAction2(class extends NotebookAction {
263263 id : EXECUTE_CELL_INSERT_BELOW ,
264264 title : localize ( 'notebookActions.executeAndInsertBelow' , "Execute Notebook Cell and Insert Below" ) ,
265265 keybinding : {
266- when : NOTEBOOK_EDITOR_FOCUSED ,
266+ when : NOTEBOOK_CELL_LIST_FOCUSED ,
267267 primary : KeyMod . Alt | KeyCode . Enter ,
268268 weight : EDITOR_WIDGET_ACTION_WEIGHT
269269 } ,
@@ -487,7 +487,7 @@ registerAction2(class extends InsertCellCommand {
487487 title : localize ( 'notebookActions.insertCodeCellAbove' , "Insert Code Cell Above" ) ,
488488 keybinding : {
489489 primary : KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . Enter ,
490- when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
490+ when : ContextKeyExpr . and ( NOTEBOOK_CELL_LIST_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
491491 weight : KeybindingWeight . WorkbenchContrib
492492 } ,
493493 } ,
@@ -504,7 +504,7 @@ registerAction2(class extends InsertCellCommand {
504504 title : localize ( 'notebookActions.insertCodeCellBelow' , "Insert Code Cell Below" ) ,
505505 keybinding : {
506506 primary : KeyMod . CtrlCmd | KeyCode . Enter ,
507- when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
507+ when : ContextKeyExpr . and ( NOTEBOOK_CELL_LIST_FOCUSED , InputFocusedContext . toNegated ( ) ) ,
508508 weight : KeybindingWeight . WorkbenchContrib
509509 } ,
510510 } ,
@@ -564,7 +564,7 @@ registerAction2(class extends NotebookAction {
564564 id : EDIT_CELL_COMMAND_ID ,
565565 title : localize ( 'notebookActions.editCell' , "Edit Cell" ) ,
566566 keybinding : {
567- when : ContextKeyExpr . and ( NOTEBOOK_EDITOR_FOCUSED , ContextKeyExpr . not ( InputFocusedContextKey ) ) ,
567+ when : ContextKeyExpr . and ( NOTEBOOK_CELL_LIST_FOCUSED , ContextKeyExpr . not ( InputFocusedContextKey ) ) ,
568568 primary : KeyCode . Enter ,
569569 weight : KeybindingWeight . WorkbenchContrib
570570 } ,
0 commit comments