##// END OF EJS Templates
Notebook: don't change cell when selecting code using shift+up/down....
Thomas Kluyver -
Show More
@@ -65,13 +65,13 var IPython = (function (IPython) {
65 // websocket connection with firefox
65 // websocket connection with firefox
66 event.preventDefault();
66 event.preventDefault();
67 }
67 }
68 if (event.which === 38) {
68 if (event.which === 38 && !event.shiftKey) {
69 var cell = that.selected_cell();
69 var cell = that.selected_cell();
70 if (cell.at_top()) {
70 if (cell.at_top()) {
71 event.preventDefault();
71 event.preventDefault();
72 that.select_prev();
72 that.select_prev();
73 };
73 };
74 } else if (event.which === 40) {
74 } else if (event.which === 40 && !event.shiftKey) {
75 var cell = that.selected_cell();
75 var cell = that.selected_cell();
76 if (cell.at_bottom()) {
76 if (cell.at_bottom()) {
77 event.preventDefault();
77 event.preventDefault();
General Comments 0
You need to be logged in to leave comments. Login now