Hi there. Is there any way to copy strings to the native clipboard, or detect current cursor position in textbox?
I’m building this app that uses native text box as note pad, and one of my function is to paste strings into where the cursor is. I have looked up the documents and there seems no way to communicate with native clipboard.
The solution I’m using right now is utilize “event.phase == editing” to detect startposition, then copy the whole thing, insert the strings, then overwrite the text. But there is one problem, the startposition will not be updated until user inputs something, so the strings will not be inserted to the desired position properly. And the cursor is always set the end of textBox after I overwrite the text.
Is there any solution? [import]uid: 180793 topic_id: 31985 reply_id: 331985[/import]