tad
06/23/2021, 12:10 AMImeAction.Next
. Should tapping the IME action just do the right thing and focus the next field, or do I need to set this up manually with FocusRequester and KeyboardActions?tad
06/23/2021, 12:11 AMMichal Klimczak
06/23/2021, 6:07 AMlhwdev
06/23/2021, 6:07 AMImeAction.Next
is not handled automatically; I struggled with the same problem.
// If no custom focus traversal order is specified, perform a search for the appropriate item
// to move focus to.
val nextNode = when (focusDirection) {
Next, Previous -> null // TODO(b/170155659): Perform one dimensional focus search.
Left, Right, Up, Down -> twoDimensionalFocusSearch(focusDirection)
You need to set these things manually with focusOrder
.
However If you use Down
and etc, you only need to implement keyboardActions
.Max Otuteye
06/23/2021, 12:22 PM