Pure-functional helpers for focus tracking, announcements, and event handler registration within the AccessibilityServer state.
Summary
Functions
Creates a focus announcement string from element metadata, or nil.
Returns the focus history stored in metadata.
Handles a focus change by looking up the new focus element's metadata and potentially enqueuing a focus announcement.
Registers accessibility event handlers with EventManager for the given server module.
Unregisters accessibility event handlers from EventManager for the given server module.
Functions
Creates a focus announcement string from element metadata, or nil.
Returns the focus history stored in metadata.
Handles a focus change by looking up the new focus element's metadata and potentially enqueuing a focus announcement.
Returns {:noreply, new_state}.
Registers accessibility event handlers with EventManager for the given server module.
Unregisters accessibility event handlers from EventManager for the given server module.