Merge pull request #682 from jhamrick/scroll-when-marking

Ensure focus is kept when extending the marked region
This commit is contained in:
Min RK 2015-10-29 13:50:00 +01:00
commit c0845d0e78

View File

@ -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.