Doubleclick option for TextEditingTool.starting

Is there any way to make the TextEditingTool start on a doubleclick? I know there is the SingleClickSelected enum, which makes it so that a user has to first click to select a part. This kind of works, but it’s too easy to start editing text when the user doesn’t mean to.

Thanks!

Try this:

myDiagram.toolManager.textEditingTool.canStart = function() {
  if (this.diagram.lastInput.clickCount < 2) return false;
  return go.TextEditingTool.prototype.canStart.call(this);
};

It’s just code disallowing the textEditingTool from starting if its only a single click. Let me know if that works for you.