Filter predictable commands
Pure JavaScript normalizes the query and requires every search term to match the same command label or group.
Day 081 / UI Engineering / Accessibility
Search and select safe demo commands with keyboard navigation, semantic controls and reliable focus return.
Pure JavaScript normalizes the query and requires every search term to match the same command label or group.
Arrow movement wraps, Home and End jump to boundaries, Enter selects, and Escape closes the modal.
A named dialog, combobox, controlled listbox, active descendant, selected option and live status keep the state available to assistive technology.
Eight passing logic tests
Six safe demo commands
Keyboard and pointer support
Focus returns to the opener
No dependencies or data changes
Native dialog behavior, semantic ARIA relationships and responsive neo-brutalist styling run in a static browser project.
Eight tests cover normalization, group and label matching, multi-term queries, empty results, wraparound movement, boundaries, invalid input and lookup.