mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Merge pull request #1071 from jdfreder/movecellfocus
Focus selected cell after move.
This commit is contained in:
commit
8d4a8ee0c7
@ -877,6 +877,7 @@ define(function (require) {
|
||||
tomove.detach();
|
||||
pivot.after(tomove);
|
||||
|
||||
this.get_cell(selected-1).focus_cell();
|
||||
this.select(anchored - 1);
|
||||
this.select(selected - 1, false);
|
||||
};
|
||||
@ -903,6 +904,7 @@ define(function (require) {
|
||||
tomove.detach();
|
||||
pivot.before(tomove);
|
||||
|
||||
this.get_cell(selected+1).focus_cell();
|
||||
this.select(first);
|
||||
this.select(anchored + 1);
|
||||
this.select(selected + 1, false);
|
||||
|
Loading…
Reference in New Issue
Block a user