1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 01:50:28 +00:00

Fixed problem improperly refreshing edit controls

Thanks to pmario for pointing out the problem
This commit is contained in:
Jeremy Ruston 2012-05-01 10:02:34 +01:00
parent e9996b7fe4
commit 12bf2b6fb9

View File

@ -96,7 +96,7 @@ TextEditor.prototype.postRenderInDom = function() {
TextEditor.prototype.isRefreshable = function() {
// Don't refresh the editor if it contains the caret or selection
return !window.getSelection().containsNode(this.macroNode.domNode, true);
return document.activeElement !== this.macroNode.children[0].domNode;
};
exports["text/x-tiddlywiki"] = TextEditor;