I’m trying to activate the editor on keypress, so you don’t need to double click the node, but just type while it’s selected.
I found a diagramEvent in gojs api: “ObjectDoubleClicked”.
Im guessing that the text editor being triggered is the effect of this event, but I can’t find any documentation of that.
So what functions should I trigger to achieve this?
Thanks
All tools are started when a (typically mouse) event causes the ToolManager to select a Tool to run, if Tool.canStart returns true. GoJS Tools -- Northwoods Software
What you can do is start the TextEditingTool by calling CommandHandler.editTextBlock, passing it a reference to the TextBlock that you want the user to start editing.