Permalink
Browse files

Adding preventDefault to shift-up/down events.

  • Loading branch information...
1 parent 927f44b commit d7f2add603248c8374d63bdfa82ed5c545954a02 @ellisonbg ellisonbg committed with ellisonbg Mar 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 IPython/frontend/html/notebook/static/js/notebook.js
@@ -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.

0 comments on commit d7f2add

Please sign in to comment.