mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Adding missig altKey test to CodeCell.
This commit is contained in:
parent
6dcdb26fa4
commit
33097b0c1f
@ -182,7 +182,7 @@ var IPython = (function (IPython) {
|
|||||||
this.auto_highlight();
|
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.
|
// Always ignore shift-enter in CodeMirror as we handle it.
|
||||||
return true;
|
return true;
|
||||||
} else if (event.which === 40 && event.type === 'keypress' && IPython.tooltip.time_before_tooltip >= 0) {
|
} else if (event.which === 40 && event.type === 'keypress' && IPython.tooltip.time_before_tooltip >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user