From 81e96fc33d0e7fe65e12e41ada3eee8cf1026920 2014-03-03 19:27:58 From: Jonathan Frederic Date: 2014-03-03 19:27:58 Subject: [PATCH] Don't allow edit mode up arrow to continue past index == 0 --- diff --git a/IPython/html/static/notebook/js/keyboardmanager.js b/IPython/html/static/notebook/js/keyboardmanager.js index 50ea096..ccfcb62 100644 --- a/IPython/html/static/notebook/js/keyboardmanager.js +++ b/IPython/html/static/notebook/js/keyboardmanager.js @@ -162,8 +162,9 @@ var IPython = (function (IPython) { help : '', help_index : '', handler : function (event) { + var index = IPython.notebook.get_selected_index(); var cell = IPython.notebook.get_selected_cell(); - if (cell && cell.at_top()) { + if (index !== 0 && cell && cell.at_top()) { event.preventDefault(); IPython.notebook.command_mode(); IPython.notebook.select_prev();