From 4ed449c0a83d1af11334525f61a1b7d0b9a0bc2c 2014-02-28 23:06:47 From: Jonathan Frederic Date: 2014-02-28 23:06:47 Subject: [PATCH] Move should cancel blur into codecell --- diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index 4e44987..d76c697 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -269,7 +269,7 @@ var IPython = (function (IPython) { * @return results {bool} Whether or not to ignore the cell's blur event. **/ Cell.prototype.should_cancel_blur = function () { - return IPython.tooltip && IPython.tooltip.is_visible(); + return false; }; /** diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 7095c33..4c8d613 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -411,9 +411,10 @@ var IPython = (function (IPython) { **/ CodeCell.prototype.should_cancel_blur = function () { // Cancel this unfocus event if the base wants to cancel or the cell - // completer is open. + // completer is open or the tooltip is open. return IPython.Cell.prototype.should_cancel_blur.apply(this) || - (this.completer && this.completer.is_visible()); + (this.completer && this.completer.is_visible()) || + (IPython.tooltip && IPython.tooltip.is_visible()); }; CodeCell.prototype.select_all = function () {