WORK-048
ID:WORK-048Status:done

Keyboard navigation for plan site

Add keyboard shortcuts for fast navigation: / to focus search, j/k to move between sidebar items, Enter to navigate, [/] to jump between entity type groups, o to toggle collapse, Escape to clear.

Priority:lowComplexity:simpleSource:SPEC-015

Acceptance Criteria

  • / focuses the search/filter bar
  • Escape clears filter and unfocuses search bar
  • j/k moves to next/previous item in sidebar
  • Enter navigates to the focused item
  • [/] jumps to previous/next entity type group
  • o toggles collapse of the focused group
  • Visual focus indicator matches the active link style
  • Shortcuts don't fire when typing in the search input (except Escape)

Approach

A keyboard-nav behavior. Sidebar items get tabindex attributes. The behavior manages a virtual focus cursor and delegates to existing collapse/filter behaviors.

Once WORK-050 converges the plan renderer with the shared layout engine, this behavior can be registered in the planLayout.behaviors array (like mobile-menu and search in docsLayout), removing the need for inline script injection.

References

History

  1. 59ded4a
    Content edited
  2. f262d7b
    source+SPEC-015
  3. b00edf7
    statusdraftdone
    • ☑ `/` focuses the search/filter bar
    • ☑ `Escape` clears filter and unfocuses search bar
    • ☑ `j`/`k` moves to next/previous item in sidebar
    • +5 more criteria
  4. 3d8d331
    Content edited
  5. f5b8bf8
    Created (draft, low, simple, plan, ux, behaviors)