Show More
@@ -228,6 +228,11 b' var IPython = (function (IPython) {' | |||||
228 | }; |
|
228 | }; | |
229 |
|
229 | |||
230 |
|
230 | |||
|
231 | CodeCell.prototype.clear_input = function () { | |||
|
232 | this.code_mirror.setValue(''); | |||
|
233 | }; | |||
|
234 | ||||
|
235 | ||||
231 | CodeCell.prototype.collapse = function () { |
|
236 | CodeCell.prototype.collapse = function () { | |
232 | this.element.find('div.output').hide(); |
|
237 | this.element.find('div.output').hide(); | |
233 | }; |
|
238 | }; |
@@ -59,6 +59,10 b' var IPython = (function (IPython) {' | |||||
59 | } else if (event.which === 13 && event.shiftKey) { |
|
59 | } else if (event.which === 13 && event.shiftKey) { | |
60 | that.execute_selected_cell(true); |
|
60 | that.execute_selected_cell(true); | |
61 | return false; |
|
61 | return false; | |
|
62 | } else if (event.which === 13 && event.ctrlKey) { | |||
|
63 | that.execute_selected_cell(false); | |||
|
64 | that.selected_cell().clear_input(); | |||
|
65 | return false; | |||
62 | }; |
|
66 | }; | |
63 | }); |
|
67 | }); | |
64 |
|
68 |
General Comments 0
You need to be logged in to leave comments.
Login now