keyboard
Originally frommgifford/accessibility-skills
Installation
SKILL.md
If .ux-profile.md exists at the project root, read it before changing surfaces, forms, or focus behavior.
Intent
Pointer-only UI excludes keyboard and assistive-tech users and slows power users. Every control operable by mouse must work by keyboard; focus must always be visible; overlays must trap and restore focus predictably.
Hard Rules (Non-Negotiable)
- Every mouse-operable control must work via Tab, Shift+Tab, Enter, and Space. Links, buttons, toggles, menus, tabs, and custom widgets expose correct roles and keyboard handlers. No hover-only actions without a keyboard equivalent.
- Never
outline: nonewithout an immediate high-contrast replacement. Usebox-shadowfocus ring oroutlinewithoutline-offset: 2pxmeeting contrast requirements from.ux-profile.md. Focus must be visible in both light and dark themes. - Modals and slide-overs trap focus internally; restore focus to the trigger on close. Tab cycles within the overlay only; on dismiss, return focus to the element that opened the surface.
See reference/keybinding-matrix.md for Esc, Enter, Slash, Mod+K, and grid navigation conventions.