mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Adding preventDefault to shift-up/down events.
This commit is contained in:
parent
276e5db516
commit
f44f537ee4
@ -19,8 +19,10 @@ Notebook.prototype.bind_events = function () {
|
||||
$(document).keydown(function (event) {
|
||||
console.log(event);
|
||||
if (event.which == 38 && event.shiftKey) {
|
||||
event.preventDefault();
|
||||
that.select_prev();
|
||||
} else if (event.which == 40 && event.shiftKey) {
|
||||
event.preventDefault();
|
||||
that.select_next();
|
||||
} else if (event.which == 13 && event.shiftKey) {
|
||||
// The focus is not quite working here.
|
||||
|
Loading…
Reference in New Issue
Block a user