Focus cells after they are inserted.

Brian E. Granger 12 years ago
parent cc765e29d9
commit 77fd1ff6e5

@ -280,6 +280,7 @@ var IPython = (function (IPython) {
handler : function (event) {
IPython.notebook.insert_cell_above('code');
IPython.notebook.select_prev();
IPython.notebook.focus_cell();
return false;
}
},
@ -288,6 +289,7 @@ var IPython = (function (IPython) {
handler : function (event) {
IPython.notebook.insert_cell_below('code');
IPython.notebook.select_next();
IPython.notebook.focus_cell();
return false;
}
},

@ -42,6 +42,7 @@ var IPython = (function (IPython) {
callback : function () {
IPython.notebook.insert_cell_below('code');
IPython.notebook.select_next();
IPython.notebook.focus_cell();
}
}
],'insert_above_below');

Loading…
Cancel
Save