API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classFocusManager

@codexo/exojs / input / stable

Per-Application keyboard-focus service. Tracks the single focused RenderNode, routes keyboard input from the InputManager to it, and provides Tab-order traversal across the focusable nodes of the active focus scope. A node reaches this service through its Stage (`stage.focus`); app code reaches it through `app.focus`. Constructed automatically by Application; you do not instantiate this class yourself. Built-in key handling: `Tab` / `Shift+Tab` move focus to the next / previous focusable node. A focused node can call KeyEvent.preventDefault on its `onKeyDown` event to opt out of this and consume the key itself.

1
props
7
methods
0
events
Import
import { FocusManager } from '@codexo/exojs'

Per-Application keyboard-focus service. Tracks the single focused RenderNode, routes keyboard input from the InputManager to it, and provides Tab-order traversal across the focusable nodes of the active focus scope.

A node reaches this service through its Stage (`stage.focus`); app code reaches it through `app.focus`. Constructed automatically by Application; you do not instantiate this class yourself.

Built-in key handling: `Tab` / `Shift+Tab` move focus to the next / previous focusable node. A focused node can call KeyEvent.preventDefault on its `onKeyDown` event to opt out of this and consume the key itself.

Constructors 1
new(app: Application): FocusManager
Methods 7
blur(node?: RenderNode): void
destroy(): void
focus(node: RenderNode): void
focusNext(): void
focusPrevious(): void
popScope(): void
pushScope(root: RenderNode): void
Properties 1
focused: RenderNode | null
Source