From 33097b0c1fa0ec7cff02ec7e75eacf532bcef027 Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Wed, 8 Jan 2014 17:13:57 -0800 Subject: [PATCH] Adding missig altKey test to CodeCell. --- IPython/html/static/notebook/js/codecell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 6980b5e09..1c7e78bea 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -182,7 +182,7 @@ var IPython = (function (IPython) { this.auto_highlight(); } - if (event.keyCode === key.ENTER && (event.shiftKey || event.ctrlKey)) { + if (event.keyCode === key.ENTER && (event.shiftKey || event.ctrlKey || event.altKey)) { // Always ignore shift-enter in CodeMirror as we handle it. return true; } else if (event.which === 40 && event.type === 'keypress' && IPython.tooltip.time_before_tooltip >= 0) {