Put focus on insertion point..
I'm trying to put the focus on the insertion point after inserting text from a palette without mouseclick.
I just want to continue writing at that point.
Things I've already tested:
- scrollToText
- oDoc.IsInFront = 1
- oDoc.TextSelection = tRange
Has anybody solved this problem?
var w = new Window ("palette","INSERT");
w.Button = w.add("button",undefined,"Go")
w.Button.onClick = Insert;
w.show()
function Insert()
{
var oDoc = app.ActiveDoc
var textLoc = oDoc.TextSelection.beg;
oDoc.AddText (textLoc, "Test");
}
