Assigned
Status Update
Comments
ol...@gmail.com <ol...@gmail.com> #2
I don't think this falls under pointer input so this is simply less tied to the area I've been focusing on. I think this should be considered open for anyone else to start working on. I think the two main areas of work for keyboard input are building out the equivalent of focusableInTouchMode and routing keyboard input events to the appropriate node/modifier.
Is this something that Semantics should handle? Seems that if it did, both keyboard events, auto fill, google assistant, could all use the same mechanism to send text data to the ui.
Is this something that Semantics should handle? Seems that if it did, both keyboard events, auto fill, google assistant, could all use the same mechanism to send text data to the ui.
Description
Compose BOM version: 2024.12.01.
Jetpack Compose component used: FocusRestorer.
Android Studio Build: Android Studio Ladybug | 2024.2.1.
Kotlin version: 2.0.0
Problem
Focushandling on TV with multiple Rows in a LazyColumn where the first Row is aligned at the bottom of the screen. When navigating up an down between the rows, the focus sometimes skips 1 or more rows.
Reproduce
Comment
Spend a lot of time searching for a fix. In the end I wrote a custom FocusRestorer which doesn't pin its item when leaving the viewport.
I wrote another bug regarding the pinning, because no item will be disposed after scrolling it out of the viewport when using FocusRestorer. Which could result in bad perfomance results when you are using a huge amount of items.