I have got an Issue with the TextIput.
I want to check the input text and and a “-” when the String’s length == 3.
But when I add the String, the cursor is on the 3. position (“aaa|-”) and not on the 4. (“aaa-|”)
Actualy I dont want to move the caret but I think I have to, because it seems to be a bug…Dont you have the same issue?
I want to achieve a TextInput with a regex in form of : “AAA-AAA-AAA”.
And I tried to add automatically a “-” when the string is length==3. But then the caret moves infromnt of the “-” and not at the end
The caret doesn’t move if you change the content of TextInput not by the system keyboard, that is expected behavior, what we needed just @aeq said are features to set caret position programmatically and other functionality such as text selection, copy and paste.
I am in implementing the Scriptclass method for TextInput for setting a caret position in the javascript. I hope it will be finished this weekend.