From 1be7dfb380008e52f25448c059ae2c28ff432b1a 2012-02-01 17:57:23 From: Brian Granger Date: 2012-02-01 17:57:23 Subject: [PATCH] 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. --- diff --git a/IPython/frontend/html/notebook/static/js/textcell.js b/IPython/frontend/html/notebook/static/js/textcell.js index 1c98dea..f48f452 100644 --- a/IPython/frontend/html/notebook/static/js/textcell.js +++ b/IPython/frontend/html/notebook/static/js/textcell.js @@ -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;