MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / createFocusManagerState

Function createFocusManagerState

packages/core/src/runtime/focus.ts:178–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176
177/** Create initial focus manager state. */
178export function createFocusManagerState(): FocusManagerState {
179 return Object.freeze({
180 focusedId: null,
181 activeZoneId: null,
182 zones: new Map(),
183 trapStack: Object.freeze([]),
184 trapReturnFocusById: new Map(),
185 lastFocusedByZone: new Map(),
186 });
187}
188
189/**
190 * Compute grid movement index.

Callers 5

WidgetRendererClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected