Skip to content

Commit 62f2c7c

Browse files
committed
Fixed a broken keybinding in Monaco editor.
1 parent aeaabf6 commit 62f2c7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/notebook-editor/src/components/monaco-editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ class MonacoEditorView extends React.Component<IMonacoEditorProps, IMonacoEditor
346346
this.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.DownArrow, () => this.invokeNamedCommand("move-cell-down"), "");
347347
this.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.UpArrow, () => this.invokeNamedCommand("move-cell-up"), "");
348348
this.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Slash, () => this.invokeNamedCommand("toggle-hotkeys"), "");
349+
this.editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.KeyR, () => this.invokeNamedCommand("eval-single-cell"), "");
349350

350351
if (this.props.onEscapeKey) {
351352
this.editor.addCommand(monaco.KeyCode.Escape, () => {

0 commit comments

Comments
 (0)