Show More
@@ -214,6 +214,11 var IPython = (function (IPython) { | |||||
214 | }; |
|
214 | }; | |
215 |
|
215 | |||
216 |
|
216 | |||
|
217 | CodeCell.prototype.toggle_output_scroll = function () { | |||
|
218 | this.output_area.toggle_scroll(); | |||
|
219 | }; | |||
|
220 | ||||
|
221 | ||||
217 | CodeCell.prototype.set_input_prompt = function (number) { |
|
222 | CodeCell.prototype.set_input_prompt = function (number) { | |
218 | this.input_prompt_number = number; |
|
223 | this.input_prompt_number = number; | |
219 | var ns = number || " "; |
|
224 | var ns = number || " "; |
@@ -191,7 +191,11 var IPython = (function (IPython) { | |||||
191 | return false; |
|
191 | return false; | |
192 | } else if (event.which === 79 && that.control_key_active) { |
|
192 | } else if (event.which === 79 && that.control_key_active) { | |
193 | // Toggle output = o |
|
193 | // Toggle output = o | |
194 | that.toggle_output(); |
|
194 | if (event.shiftKey){ | |
|
195 | that.toggle_output_scroll(); | |||
|
196 | } else { | |||
|
197 | that.toggle_output(); | |||
|
198 | } | |||
195 | that.control_key_active = false; |
|
199 | that.control_key_active = false; | |
196 | return false; |
|
200 | return false; | |
197 | } else if (event.which === 83 && that.control_key_active) { |
|
201 | } else if (event.which === 83 && that.control_key_active) { | |
@@ -865,6 +869,12 var IPython = (function (IPython) { | |||||
865 | }; |
|
869 | }; | |
866 |
|
870 | |||
867 |
|
871 | |||
|
872 | Notebook.prototype.toggle_output_scroll = function (index) { | |||
|
873 | var i = this.index_or_selected(index); | |||
|
874 | this.get_cell(i).toggle_output_scroll(); | |||
|
875 | }; | |||
|
876 | ||||
|
877 | ||||
868 | Notebook.prototype.collapse_all_output = function () { |
|
878 | Notebook.prototype.collapse_all_output = function () { | |
869 | var ncells = this.ncells(); |
|
879 | var ncells = this.ncells(); | |
870 | var cells = this.get_cells(); |
|
880 | var cells = this.get_cells(); |
General Comments 0
You need to be logged in to leave comments.
Login now