Permalink
Browse files

Notebook: don't change cell when selecting code using shift+up/down.

Closes gh-787
  • Loading branch information...
1 parent a8ed50a commit ab41cc438ed572874c62f98b0609e20b9fe992e3 @takluyver committed Nov 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/frontend/html/notebook/static/js/notebook.js
@@ -65,13 +65,13 @@ var IPython = (function (IPython) {
// websocket connection with firefox
event.preventDefault();
}
- if (event.which === 38) {
+ if (event.which === 38 && !event.shiftKey) {
var cell = that.selected_cell();
if (cell.at_top()) {
event.preventDefault();
that.select_prev();
};
- } else if (event.which === 40) {
+ } else if (event.which === 40 && !event.shiftKey) {
var cell = that.selected_cell();
if (cell.at_bottom()) {
event.preventDefault();

0 comments on commit ab41cc4

Please sign in to comment.