Show More
@@ -162,8 +162,9 b' var IPython = (function (IPython) {' | |||||
162 | help : '', |
|
162 | help : '', | |
163 | help_index : '', |
|
163 | help_index : '', | |
164 | handler : function (event) { |
|
164 | handler : function (event) { | |
|
165 | var index = IPython.notebook.get_selected_index(); | |||
165 | var cell = IPython.notebook.get_selected_cell(); |
|
166 | var cell = IPython.notebook.get_selected_cell(); | |
166 | if (cell && cell.at_top()) { |
|
167 | if (index !== 0 && cell && cell.at_top()) { | |
167 | event.preventDefault(); |
|
168 | event.preventDefault(); | |
168 | IPython.notebook.command_mode(); |
|
169 | IPython.notebook.command_mode(); | |
169 | IPython.notebook.select_prev(); |
|
170 | IPython.notebook.select_prev(); |
General Comments 0
You need to be logged in to leave comments.
Login now