Permalink
Browse files

Prevent shift-enter from propagating and performing default.

  • Loading branch information...
1 parent 0c51946 commit d8294f0bb3cd2c78a10dbc95e10e9f39f6d4de9b @ellisonbg ellisonbg committed Jul 23, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 IPython/frontend/html/notebook/static/js/notebook.js
@@ -58,6 +58,7 @@ var IPython = (function (IPython) {
};
} else if (event.which === 13 && event.shiftKey) {
that.execute_selected_cell(true);
+ return false;
};
});

0 comments on commit d8294f0

Please sign in to comment.