https://kotlinlang.org logo
#compose
Title
# compose
u

Utkarsh Tiwari

02/05/2021, 4:59 AM
Is there any way to auto-place the cursor at the end of the already inputted text when the user brings the focus onto the OutLinedTextField?
s

Siyamed

02/05/2021, 5:02 AM
To set the cursor position use TextFieldValue and set selection attribute to the index
🙏 1
"When the textfield is focused" i dont know details but use a focus listener (modifier?)
u

Utkarsh Tiwari

02/05/2021, 5:03 AM
Thanks @Siyamed, that’s helpful!
5 Views