Assigned
Status Update
Comments
ra...@google.com <ra...@google.com>
on...@jacon.cz <on...@jacon.cz> #2
We could add an API to make the weighted distance customizable, aosp/3271691 has more info.
on...@jacon.cz <on...@jacon.cz> #3
Still an issue in 1.5.0-beta02
on...@jacon.cz <on...@jacon.cz> #4
It seems that focusProperties.exit
is called with FocusDirection.Enter
after FocusRequester.requestFocus()
. If we return FocusRequester.Cancel
in exit
, focus stays in the focus group. If we return FocusRequester.Default
, the node with FocusRequester
gains focus as expected.
Description
Jetpack Compose version:
Jetpack Compose component used:
Android Studio Build:
Kotlin version:
Sample code with steps to reproduce:
BackHandler
is called butmenuFocusRequester.requestFocus()
does nothing, see the attached screen recording)Without
focusGroup()
,menuFocusRequester.requestFocus()
works as expected.In compose 1.4.3, it works even with
focusGroup()
.There is already a regression in 1.5.0-alpha01 where the first
requestFocus()
is ignored and subsequent ones are working.