##// END OF EJS Templates
Split cell keyboard shortcut wired up. Merge markdown adds 2nd \n.
Brian E. Granger -
Show More
@@ -241,6 +241,11 b' var IPython = (function (IPython) {'
241 241 // Undo last cell delete = z
242 242 notebook.undelete();
243 243 return false;
244 } else if (event.which === 189 || event.which === 173) {
245 // how fun! '-' is 189 in Chrome, but 173 in FF and Opera
246 // Split cell = -
247 notebook.split_cell();
248 return false;
244 249 };
245 250 // If we havn't handled it, let someone else.
246 251 return true;
@@ -1079,7 +1079,7 b' var IPython = (function (IPython) {'
1079 1079 cell.set_text(upper_text+'\n'+text);
1080 1080 } else if (cell instanceof IPython.MarkdownCell) {
1081 1081 cell.unrender();
1082 cell.set_text(upper_text+'\n'+text);
1082 cell.set_text(upper_text+'\n\n'+text);
1083 1083 cell.render();
1084 1084 };
1085 1085 this.delete_cell(index-1);
@@ -1109,7 +1109,7 b' var IPython = (function (IPython) {'
1109 1109 cell.set_text(text+'\n'+lower_text);
1110 1110 } else if (cell instanceof IPython.MarkdownCell) {
1111 1111 cell.unrender();
1112 cell.set_text(text+'\n'+lower_text);
1112 cell.set_text(text+'\n\n'+lower_text);
1113 1113 cell.render();
1114 1114 };
1115 1115 this.delete_cell(index+1);
General Comments 0
You need to be logged in to leave comments. Login now