Added basic scroll to bottom binding for ctrl-l.

Alexander Belopolsky 11 years ago committed by Min RK
parent 02b757770b
commit 8f111d0f8d

@ -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',

@ -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'
};
};

Loading…
Cancel
Save