()
| 176 | |
| 177 | /** Create initial focus manager state. */ |
| 178 | export 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. |
no outgoing calls
no test coverage detected