diff --git a/IPython/html/static/notebook/js/actions.js b/IPython/html/static/notebook/js/actions.js index d3f194e..7fcd6b4 100644 --- a/IPython/html/static/notebook/js/actions.js +++ b/IPython/html/static/notebook/js/actions.js @@ -368,6 +368,15 @@ define(function(require){ return env.notebook.scroll_manager.scroll(-1); }, }, + 'recenter-top-bottom': { + help: "Move the current cell to the center, top or bottom", + handler: function (env, event) { + if(event){ + event.preventDefault(); + } + return env.notebook.scroll_to_bottom(); + } + }, 'save-notebook':{ help: "Save and Checkpoint", help_index : 'fb', diff --git a/IPython/html/static/notebook/js/keyboardmanager.js b/IPython/html/static/notebook/js/keyboardmanager.js index 82d3d36..3e41fa7 100644 --- a/IPython/html/static/notebook/js/keyboardmanager.js +++ b/IPython/html/static/notebook/js/keyboardmanager.js @@ -79,7 +79,8 @@ define([ 'up' : 'ipython.move-cursor-up-or-previous-cell', 'down' : 'ipython.move-cursor-down-or-next-cell', 'ctrl-shift--' : 'ipython.split-cell-at-cursor', - 'ctrl-shift-subtract' : 'ipython.split-cell-at-cursor' + 'ctrl-shift-subtract' : 'ipython.split-cell-at-cursor', + 'ctrl-l' : 'ipython.recenter-top-bottom' }; };