From bcd0fff5d0f5477a75d5b2fa393625bb3232ae65 2012-01-06 03:12:44 From: MinRK Date: 2012-01-06 03:12:44 Subject: [PATCH] edit text cells on double-click instead of single-click Single-click to edit gets in the way of using interactive elements (e.g. non-flash videos), and select/copy of the rendered HTML. Switching to double-click makes the edit action more intentional. --- diff --git a/IPython/frontend/html/notebook/static/js/textcell.js b/IPython/frontend/html/notebook/static/js/textcell.js index 601de0f..16f1810 100644 --- a/IPython/frontend/html/notebook/static/js/textcell.js +++ b/IPython/frontend/html/notebook/static/js/textcell.js @@ -89,7 +89,7 @@ var IPython = (function (IPython) { TextCell.prototype.config_mathjax = function () { var text_cell = this.element; var that = this; - text_cell.click(function () { + text_cell.dblclick(function () { that.edit(); }).focusout(function () { that.render();