Adding missig altKey test to CodeCell.

This commit is contained in:
Brian E. Granger 2014-01-08 17:13:57 -08:00
parent 6dcdb26fa4
commit 33097b0c1f

View File

@ -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) {