mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Merge pull request #682 from jhamrick/scroll-when-marking
Ensure focus is kept when extending the marked region
This commit is contained in:
commit
c0845d0e78
@ -728,6 +728,8 @@ define(function (require) {
|
||||
var selectedIndex = Math.min(Math.max(this.get_selected_index() + offset, 0), this.ncells()-1);
|
||||
this.select(selectedIndex);
|
||||
this.get_selected_cell().marked = true;
|
||||
|
||||
this.ensure_focused();
|
||||
};
|
||||
|
||||
// Cell selection.
|
||||
|
Loading…
Reference in New Issue
Block a user