diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts index 18ee084a5f0d818c8bccdbb9d57bc405f528fdf1..50ea85aaed116701005b44ca8918afa913f3ba0a 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts @@ -608,6 +608,9 @@ export class NotebookEditor extends BaseEditor implements INotebookEditor { (document.activeElement as HTMLElement).blur(); } + cell.state = CellState.Preview; + cell.focusMode = CellFocusMode.Editor; + this.list?.setFocus([index]); this.list?.setSelection([index]); this.list?.focusView();