Skip to content

Commit

Permalink
Ctrl+Enter in native notebooks should put cell into command mode im…
Browse files Browse the repository at this point in the history
…mediately, then run the cell (#6583)
  • Loading branch information
joyceerhl authored Jul 8, 2021
1 parent d20d44f commit d04d36f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/2 Fixes/6582.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`Ctrl+Enter` in native notebooks should put cell into command mode immediately, then run the cell.
4 changes: 2 additions & 2 deletions src/client/datascience/commands/notebookCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class NotebookCommands implements IDisposable {

private executeCell() {
void this.commandManager
.executeCommand('notebook.cell.execute')
.then(() => this.commandManager.executeCommand('notebook.cell.quitEdit'));
.executeCommand('notebook.cell.quitEdit')
.then(() => this.commandManager.executeCommand('notebook.cell.execute'));
}

private renderMarkdownAndSelectBelow() {
Expand Down

0 comments on commit d04d36f

Please sign in to comment.