You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this document stating that Tab and Shift+Tab are supposed to automatically move the focus to the next/previous focusable element but I supposed this is only for Compose Desktop because it's not working on a JS app.
It's easy to add by re-adding manually the moveFocusOnTab modifier that used to be on that document:
fun Modifier.moveFocusOnTab() = composed {
val focusManager =LocalFocusManager.current
onPreviewKeyEvent {
if (it.type ==KeyEventType.KeyDown&& it.key ==Key.Tab) {
focusManager.moveFocus(
if (it.isShiftPressed) FocusDirection.PreviouselseFocusDirection.Next
)
true
} else {
false
}
}
}
But it'd be cool if this was happening automatically.
Thanks!
The text was updated successfully, but these errors were encountered:
I found this document stating that Tab and Shift+Tab are supposed to automatically move the focus to the next/previous focusable element but I supposed this is only for Compose Desktop because it's not working on a JS app.
It's easy to add by re-adding manually the
moveFocusOnTab
modifier that used to be on that document:But it'd be cool if this was happening automatically.
Thanks!
The text was updated successfully, but these errors were encountered: