Join Slack
Is there any way to auto-place the cursor at the end of the already inputted text when the user brin...
# 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
Siyamed
02/05/2021, 5:02 AM
"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!
7
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by