From b33acf997bed9e118b4c3a27fa3ec7e337097821 2013-10-11 15:52:02 From: Paul Ivanov Date: 2013-10-11 15:52:02 Subject: [PATCH] split focuses the top of the newly created cell --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 891a8c8..ccb16b6 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -1164,6 +1164,7 @@ var IPython = (function (IPython) { cell.set_text(textb); var new_cell = this.insert_cell_above('code'); new_cell.set_text(texta); + this.select_next(); } else if (cell instanceof IPython.MarkdownCell) { cell.set_text(textb); cell.render(); @@ -1171,6 +1172,7 @@ var IPython = (function (IPython) { new_cell.edit(); // editor must be visible to call set_text new_cell.set_text(texta); new_cell.render(); + this.select_next(); } }; };