Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing Ctrl-Enter on Firefox.

  • Loading branch information...
commit 7b26cae765f48679319ce3909f2837b22a4ba55b 1 parent 6ecc466
@ellisonbg ellisonbg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/frontend/html/notebook/static/js/codecell.js
View
2  IPython/frontend/html/notebook/static/js/codecell.js
@@ -51,7 +51,7 @@ var IPython = (function (IPython) {
// This method gets called in CodeMirror's onKeyDown/onKeyPress handlers and
// is used to provide custom key handling. Its return value is used to determine
// if CodeMirror should ignore the event: true = ignore, false = don't ignore.
- if (event.keyCode === 13 && event.shiftKey) {
+ if (event.keyCode === 13 && (event.shiftKey || event.ctrlKey)) {
// Always ignore shift-enter in CodeMirror as we handle it.
return true;
} else if (event.keyCode === 9 && event.type == 'keydown') {
Please sign in to comment.
Something went wrong with that request. Please try again.