Skip to content

Commit

Permalink
ignore shift keydown
Browse files Browse the repository at this point in the history
prevented case-sensitive shortcuts if shift was pressed after control key
  • Loading branch information
minrk committed Jun 26, 2012
1 parent 94a96b8 commit 8dc3ac7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IPython/frontend/html/notebook/static/js/notebook.js
Expand Up @@ -95,6 +95,9 @@ var IPython = (function (IPython) {
// Intercept escape at highest level to avoid closing
// websocket connection with firefox
event.preventDefault();
} else if (event.which === key.SHIFT) {
// ignore shift keydown
return true;
}
if (event.which === key.UPARROW && !event.shiftKey) {
var cell = that.get_selected_cell();
Expand Down

1 comment on commit 8dc3ac7

@dchichkov
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit breaks "Shift-Ins" paste in the CodeMirror.

Please sign in to comment.