Join Slack
Powered by
Does anyone have a sample of a Grid widget with ke...
# compose-desktop
a
adte
05/27/2023, 6:49 PM
Does anyone have a sample of a Grid widget with keyboard navigation? Struggling to get that to work with setting focus and getting key events to register for some reason
adte
05/27/2023, 6:54 PM
Hmm, seems this thread provides interesting options, at least for Android:
https://stackoverflow.com/questions/70838476/onkeyevent-without-focus-in-jetpack-compose
adte
05/27/2023, 7:13 PM
Okay, I figured my issue was with the order of focus modifiers (
https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusRequester
) Still, I think I will look into the LocalKeyEventHandlers from the stackoverflow above, right now when loosing key input when a control goes out of focus is a little annoying
5
Views
Open in Slack
Previous
Next