Chris B
08/20/2024, 8:06 AMval focusRequester = FocusRequester()
Column {
Box(Modifier.weight(1f).padding(5.dp)
.focusable()
.focusRequester(focusRequester)
.onFocusChanged {
println(it.isFocused)
focusRequester.requestFocus()
}) {
// draw stuff here
}
}
... but it just prints false
once and never prints anything else, even when I click around to textfields and buttons which aren't contained within my component.Albert Chang
08/20/2024, 9:30 AMfocusRequester
and onFocusChanged
before focusable
.Chris B
08/20/2024, 9:32 AMChris B
08/20/2024, 9:34 AMfocusRequester
and register for events.Albert Chang
08/20/2024, 9:55 AM