https://kotlinlang.org logo
Title
s

SrSouza

07/20/2021, 8:00 PM
Hi folks, there is tab-navigation in compose desktop?
o

olonho

07/21/2021, 6:41 AM
yes, it shall be available in today's build
👍 2
:oh-yeah: 1
try
0.5.0-build262
o

orangy

07/21/2021, 11:39 AM
That’s cool, but it doesn’t work for me… When I hit TAB it crashes with stack overflow. I don’t have any focusable items, if they need to be explicitly marked.
o

olonho

07/21/2021, 11:45 AM
Thanks for report, looking, please provide issue with reproducer
s

SrSouza

07/21/2021, 11:46 AM
And about arrow navigation @olonho? I also thinking about a game UI with Compose that needs to support controllers
o

olonho

07/21/2021, 11:47 AM
Game UI probably be better done with explicit navigation
o

orangy

07/21/2021, 11:47 AM
What is the problem with arrow nav? I ported snake to Android TV and it just worked with remote 🙂
r

Roman Sedaikin [JB]

07/21/2021, 12:11 PM
In CFD, arrows are used to move the cursor in a TextField, so we cannot use arrows to navigate on focus, and there is currently no design on how to use directional focus navigation in such cases. Maybe it should be a keyboard shortcut (like arrows + alt) or arrows on the numeric keypad. But none of these solutions will help you with what you want. PS. Do I understand correctly that you need support for controllers like xbox controller/dual shock?
s

SrSouza

07/21/2021, 12:28 PM
@Roman Sedaikin [JB] Yes, I'm not a game developer but with rising handheld consoles like the announced Steam Deck I'm looking towards building applications for this type of device.