Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(desktop): stop citation popover arrow keys double-stepping sources

2 months ago

5eaa792
Authored
Max Weinbach7/14/2026, 1:20:46 PM
The portaled PopoverContent's keydown re-bubbles through the React tree
into the cite wrapper's handler, so one arrow press stepped the source
index twice: a no-op with 2 grouped sources, a skip with 3+. The cite
handler now ignores events the content already handled (defaultPrevented).
The behavioral test dispatches a bubbling ArrowRight from inside the
popover and asserts exactly one step; it fails against the unguarded
handler.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parentbb59b8b

2 files changed
  • apps/desktop/src/ui/markdown/DesktopMarkdown.tsx+4−0
  • apps/desktop/test/accessibility-review-fixes.test.ts+17−0