Show More
@@ -114,6 +114,10 b' var IPython = (function (IPython) {' | |||||
114 | } else if (event.which === key.ENTER && event.shiftKey) { |
|
114 | } else if (event.which === key.ENTER && event.shiftKey) { | |
115 | that.execute_selected_cell(); |
|
115 | that.execute_selected_cell(); | |
116 | return false; |
|
116 | return false; | |
|
117 | } else if (event.which === key.ENTER && event.altKey) { | |||
|
118 | that.execute_selected_cell(); | |||
|
119 | that.insert_cell_above('code'); | |||
|
120 | return false; | |||
117 | } else if (event.which === key.ENTER && event.ctrlKey) { |
|
121 | } else if (event.which === key.ENTER && event.ctrlKey) { | |
118 | that.execute_selected_cell({terminal:true}); |
|
122 | that.execute_selected_cell({terminal:true}); | |
119 | return false; |
|
123 | return false; |
@@ -28,6 +28,7 b' var IPython = (function (IPython) {' | |||||
28 | var shortcuts = [ |
|
28 | var shortcuts = [ | |
29 | {key: 'Shift-Enter', help: 'run cell'}, |
|
29 | {key: 'Shift-Enter', help: 'run cell'}, | |
30 | {key: 'Ctrl-Enter', help: 'run cell in-place'}, |
|
30 | {key: 'Ctrl-Enter', help: 'run cell in-place'}, | |
|
31 | {key: 'Alt-Enter', help: 'run cell, insert below'}, | |||
31 | {key: 'Ctrl-m x', help: 'cut cell'}, |
|
32 | {key: 'Ctrl-m x', help: 'cut cell'}, | |
32 | {key: 'Ctrl-m c', help: 'copy cell'}, |
|
33 | {key: 'Ctrl-m c', help: 'copy cell'}, | |
33 | {key: 'Ctrl-m v', help: 'paste cell'}, |
|
34 | {key: 'Ctrl-m v', help: 'paste cell'}, |
General Comments 0
You need to be logged in to leave comments.
Login now