File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/packages/frontend/jupyter Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,11 @@ export const CodeMirrorEditor: React.FC<CodeMirrorEditorProps> = ({
623
623
options0 . extraKeys [ "PageDown" ] = page_down_key ;
624
624
options0 . extraKeys [ "Cmd-/" ] = "toggleComment" ;
625
625
options0 . extraKeys [ "Ctrl-/" ] = "toggleComment" ;
626
- options0 . extraKeys [ "Ctrl-Enter" ] = ( ) => { } ; // ignore control+enter, since there's a shortcut
626
+ // ignore shift+enter, control+enter, alt+enter and meta+enter since there's a shortcut
627
+ options0 . extraKeys [ "Shift-Enter" ] = ( ) => { } ;
628
+ options0 . extraKeys [ "Ctrl-Enter" ] = ( ) => { } ;
629
+ options0 . extraKeys [ "Alt-Enter" ] = ( ) => { } ;
630
+ options0 . extraKeys [ "Cmd-Enter" ] = ( ) => { } ;
627
631
/*
628
632
Disabled for now since fold state isn't preserved.
629
633
if (options0.foldGutter) {
Original file line number Diff line number Diff line change @@ -764,7 +764,7 @@ export function commands(actions: AllActions): {
764
764
// on a mac). https://github.com/sagemathinc/cocalc/issues/7000
765
765
"run cell" : {
766
766
i : "play" ,
767
- m : "Run Selected Cells and Do not Advance" ,
767
+ m : "Run Selected Cells and Do Not Advance" ,
768
768
b : "Stay" ,
769
769
t : "Run all cells that are currently selected. Do not move the selection." ,
770
770
k : [
You can’t perform that action at this time.
0 commit comments