diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index b3ad0a7c1..259088cc7 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -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.