net.kernelpanicsoft.archie.gui.focus¶
Types¶
BringIntoViewParent¶
fun interface BringIntoViewParent
Adjusts scroll position (or otherwise) so a focused descendant's bounds become visible - the net.kernelpanicsoft.archie equivalent of Compose Foundation's BringIntoViewRequester/ BringIntoViewParent mechanism. Scrollable provides one automatically; Modifier.focusable's vanilla-focus bridge calls it whenever a descendant gains focus, so Tab-navigating to a node scrolled out of view brings it back into the viewport, the same as a real browser or Android view does.
LayoutNodeFocusAdapter¶
class LayoutNodeFocusAdapter(val node: LayoutNode) : GuiEventListener
Bridges one FocusableModifier-carrying LayoutNode into vanilla Minecraft's GuiEventListener focus graph, so vanilla's Tab/Shift-Tab and arrow-key navigation - and anything else that walks GuiEventListener, e.g. Controlify's controller navigation - reaches Compose content the same way it reaches an ordinary AbstractWidget.
Properties¶
LocalBringIntoViewParent¶
val LocalBringIntoViewParent: ProvidableCompositionLocal<BringIntoViewParent?>
Provides the nearest ancestor Scrollable's BringIntoViewParent, if any.