On Oct 10, 3:51 pm, Shankar Swamy <[email protected]> wrote:
>
> However, how do I return the focus back to the text area, after I
> click the button to insert a string?
>
> I tried the following and it did not work:
> domEl.focus();
>

Now I have found that the following works:

domEl.setSelectionRange(cEnd+cursorDelta, cEnd+cursorDelta);
domEl.focus().select();

- shankar

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to