##// END OF EJS Templates
inserting new cells preserves type closes #4917
Paul Ivanov -
Show More
@@ -259,7 +259,7 var IPython = (function (IPython) {
259 259 help : 'insert cell above',
260 260 help_index : 'ec',
261 261 handler : function (event) {
262 IPython.notebook.insert_cell_above('code');
262 IPython.notebook.insert_cell_above();
263 263 IPython.notebook.select_prev();
264 264 IPython.notebook.focus_cell();
265 265 return false;
@@ -269,7 +269,7 var IPython = (function (IPython) {
269 269 help : 'insert cell below',
270 270 help_index : 'ed',
271 271 handler : function (event) {
272 IPython.notebook.insert_cell_below('code');
272 IPython.notebook.insert_cell_below();
273 273 IPython.notebook.select_next();
274 274 IPython.notebook.focus_cell();
275 275 return false;
@@ -1478,7 +1478,7 var IPython = (function (IPython) {
1478 1478 // If we are at the end always insert a new cell and return
1479 1479 if (cell_index === (this.ncells()-1)) {
1480 1480 this.command_mode();
1481 this.insert_cell_below('code');
1481 this.insert_cell_below();
1482 1482 this.select(cell_index+1);
1483 1483 this.edit_mode();
1484 1484 this.scroll_to_bottom();
@@ -1487,7 +1487,7 var IPython = (function (IPython) {
1487 1487 }
1488 1488
1489 1489 this.command_mode();
1490 this.insert_cell_below('code');
1490 this.insert_cell_below();
1491 1491 this.select(cell_index+1);
1492 1492 this.edit_mode();
1493 1493 this.set_dirty(true);
@@ -1508,7 +1508,7 var IPython = (function (IPython) {
1508 1508 // If we are at the end always insert a new cell and return
1509 1509 if (cell_index === (this.ncells()-1)) {
1510 1510 this.command_mode();
1511 this.insert_cell_below('code');
1511 this.insert_cell_below();
1512 1512 this.select(cell_index+1);
1513 1513 this.edit_mode();
1514 1514 this.scroll_to_bottom();
General Comments 0
You need to be logged in to leave comments. Login now