mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Merge pull request #4974 from ivanov/better-paste
make paste focus the pasted cell
This commit is contained in:
commit
2c5db865d4
@ -1040,6 +1040,7 @@ var IPython = (function (IPython) {
|
|||||||
var cell_data = this.clipboard;
|
var cell_data = this.clipboard;
|
||||||
var new_cell = this.insert_cell_above(cell_data.cell_type);
|
var new_cell = this.insert_cell_above(cell_data.cell_type);
|
||||||
new_cell.fromJSON(cell_data);
|
new_cell.fromJSON(cell_data);
|
||||||
|
new_cell.focus_cell();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1053,6 +1054,7 @@ var IPython = (function (IPython) {
|
|||||||
var cell_data = this.clipboard;
|
var cell_data = this.clipboard;
|
||||||
var new_cell = this.insert_cell_below(cell_data.cell_type);
|
var new_cell = this.insert_cell_below(cell_data.cell_type);
|
||||||
new_cell.fromJSON(cell_data);
|
new_cell.fromJSON(cell_data);
|
||||||
|
new_cell.focus_cell();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user