Rok Oblak
09/25/2025, 12:04 PMfun Modifier.nextFocusOnTab(requester: () -> FocusRequester?): Modifier {
return onPreviewKeyEvent { event ->
if (event.key == Key.Tab && event.type == KeyEventType.KeyDown) {
requester()?.requestFocus()
true
} else {
false
}
}
}
It switches the focus to the requester (for example, the next input receives the caret) but actually the focus is requested by the browser's address bar, so the tab button becomes unusable.
A few versions back (not sure when) this worked fine, and tab would correctly focus on the next input, without browser forcing focus on the address bar.Oleksandr Karpovich [JB]
10/08/2025, 7:31 AMRok Oblak
10/08/2025, 7:35 AMRok Oblak
10/08/2025, 7:36 AMOleksandr Karpovich [JB]
10/08/2025, 7:37 AMRok Oblak
10/08/2025, 8:05 AMOleksandr Karpovich [JB]
10/08/2025, 8:06 AM