Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Jul 20, 2024
1 parent bdbe251 commit cdb6e6c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ internal fun Modifier.focusForwarder(forwarder: FocusForwarder, enabled: Boolean
// Bug workaround: the parent layout cannot remain focusable after the child receives
// focus. Otherwise, propagation of key event breaks in a weird way where returning
// false from onKeyEvent() has no effect, causing the back button to stop working.
// https://issuetracker.google.com/issues/354162583
.focusable(enabled = !forwarder.isChildFocused)
} else {
this
Expand Down

0 comments on commit cdb6e6c

Please sign in to comment.