Show More
@@ -115,8 +115,12 b' var IPython = (function (IPython) {' | |||||
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) { |
|
117 | } else if (event.which === key.ENTER && event.altKey) { | |
|
118 | // Execute code cell, and insert new in place | |||
118 | that.execute_selected_cell(); |
|
119 | that.execute_selected_cell(); | |
119 | that.insert_cell_above('code'); |
|
120 | // Only insert a new cell, if we ended up in an already populated cell | |
|
121 | if (that.get_selected_cell().toJSON().input !== "") { | |||
|
122 | that.insert_cell_above('code'); | |||
|
123 | } | |||
120 | return false; |
|
124 | return false; | |
121 | } else if (event.which === key.ENTER && event.ctrlKey) { |
|
125 | } else if (event.which === key.ENTER && event.ctrlKey) { | |
122 | that.execute_selected_cell({terminal:true}); |
|
126 | that.execute_selected_cell({terminal:true}); |
General Comments 0
You need to be logged in to leave comments.
Login now