hi all,
when I use native.setKeyboardFocus(textField) on a field that already have text, it will select all text, how can it go to the last char ready to continue editing not to select all?
regards, carlos.
hi all,
when I use native.setKeyboardFocus(textField) on a field that already have text, it will select all text, how can it go to the last char ready to continue editing not to select all?
regards, carlos.
i suppose you’ve already tried it but just a thought, no idea if it works.
on focus, copy existing text to variable, set text to “”, paste it back
other than that (if it works), im not sure if it can be done on a native field.
i never use them anyway, i always mirror input to a dummy field for visuals.
This is in the docs, but if you missed it, this is how I located it:
Besides allowing you to select a fixed piece of text, it also allow you to set the cursor position.
Setting the cursor before all text (no text selected):
textField:setSelection( 0, 0 )
Setting cursor at end of all text (no text selected):
textField:setSelection( 99999, 99999 )
So there I learned something new, thx rg 
Thanks roaminggamer, I was looking in the right place but I missed that method. next time I better pay more attention 
thanks anaqim, for trying to help also 
i suppose you’ve already tried it but just a thought, no idea if it works.
on focus, copy existing text to variable, set text to “”, paste it back
other than that (if it works), im not sure if it can be done on a native field.
i never use them anyway, i always mirror input to a dummy field for visuals.
This is in the docs, but if you missed it, this is how I located it:
Besides allowing you to select a fixed piece of text, it also allow you to set the cursor position.
Setting the cursor before all text (no text selected):
textField:setSelection( 0, 0 )
Setting cursor at end of all text (no text selected):
textField:setSelection( 99999, 99999 )
So there I learned something new, thx rg 
Thanks roaminggamer, I was looking in the right place but I missed that method. next time I better pay more attention 
thanks anaqim, for trying to help also 