I have five TextFields. After something entered in first field focus moves for next textfield. If i deleted something in text field - focus moves for pervious textfield. All work with focus goes through onValueChanged section
But if value in textfield blank("") - if i press backspace in keyboard nothing happened with onValueChanged, because value in field not changed. And I needed somehow set focus on previous textfield
So how i can use listener for back press in soft-keyboard for text field in compose?
I tried use KeyboardActions,
keyboardActions = KeyboardActions(
onPrevious = {
//some work with foucs
},
),
but it not working
And second question:
if textfield got clicked(or get focus) how to set cursor in field on end text?
I needed even if user click middle of string cursor sets on end.
