mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-07 13:07:22 +08:00
Fix #581 by moving the double-click selection focus into MarkdownCell.
This commit is contained in:
parent
34ac57cf87
commit
2af468fdc2
@ -199,10 +199,6 @@ define([
|
||||
if (that.selected === false) {
|
||||
this.events.trigger('select.Cell', {'cell':that});
|
||||
}
|
||||
var cont = that.unrender();
|
||||
if (cont) {
|
||||
that.focus_editor();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -298,6 +298,18 @@ define([
|
||||
return cont;
|
||||
};
|
||||
|
||||
/** @method bind_events **/
|
||||
MarkdownCell.prototype.bind_events = function () {
|
||||
TextCell.prototype.bind_events.apply(this);
|
||||
var that = this;
|
||||
|
||||
this.element.dblclick(function () {
|
||||
var cont = that.unrender();
|
||||
if (cont) {
|
||||
that.focus_editor();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var RawCell = function (options) {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user