Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Currently Modifier.focusable() is focusable in both touchmode and non-touch mode. We need API to specify which modes the focusable is active.
Capturing some possible ideas here:
Option 1
Add a parameter to focusable() that allows us to specify if the item is focusable in touchMode:
Option 2
Add a parameter to focusable() that allows us to specify which modes the item is focusable in.
Users could specify isFocusableInModes == TouchMode && KeyboardMode
Option 3
We could have a basic focusable() which is focusable in all modes, and then have helper modifiers that are focusable in specific modes
Option 4
We could use a canFocus property like we do in FocusProperties
This way we could specify any custom logic to determine focusablility