I am trying to switch focus to the next TextField ...
# compose-desktop
e
I am trying to switch focus to the next TextField on
TAB
pressed, but the problem is
TAB
key is not detected in
onKeyEvent
. Any ideas?
Copy code
TextField(
                    modifier = Modifier
                        .onKeyEvent {
                            println("key -> ${it.key.keyCode}")
                            false
                        },
                   ...
                )
a
it was consumed by textfield itself. use onPreviewKeyEvent to intercept events
e
Same result, it is not detected there