Adding preventDefault to shift-up/down events.

Brian Granger 15 years ago committed by Brian E. Granger
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…
Cancel
Save