Fixing Shift-Enter bug in text cells.

Hitting Shift-Enter on an already rendered text cell should simply
move past it. It was causing the cell to enter edit mode. This
is not fixed.
pull/37/head
Brian Granger 14 years ago
parent 4ae865a988
commit e5bc1eef59

@ -49,7 +49,7 @@ var IPython = (function (IPython) {
IPython.Cell.prototype.bind_events.apply(this);
var that = this;
this.element.keydown(function (event) {
if (event.which === 13) {
if (event.which === 13 && !event.shiftKey) {
if (that.rendered) {
that.edit();
return false;

Loading…
Cancel
Save