Merge pull request #4974 from ivanov/better-paste

make paste focus the pasted cell
This commit is contained in:
Brian E. Granger 2014-02-04 15:36:36 -08:00
commit 2c5db865d4

View File

@ -1040,6 +1040,7 @@ var IPython = (function (IPython) {
var cell_data = this.clipboard;
var new_cell = this.insert_cell_above(cell_data.cell_type);
new_cell.fromJSON(cell_data);
new_cell.focus_cell();
};
};
@ -1053,6 +1054,7 @@ var IPython = (function (IPython) {
var cell_data = this.clipboard;
var new_cell = this.insert_cell_below(cell_data.cell_type);
new_cell.fromJSON(cell_data);
new_cell.focus_cell();
};
};