Environment
- Plannotator Version: 0.27.22 (or latest)
- OS: Windows 11
- Browser: Google Chrome
Description
When a review session opens in the browser, the main text/markdown content container is not focused by default. Pressing keyboard navigation keys (Down, Up, Page Down, Space) does nothing until the user manually clicks inside the document reader area.
This breaks keyboard-first workflows and requires an unnecessary mouse interaction every time a plan review starts.
Steps to Reproduce
- Trigger an annotation/review session (
plannotator annotate <file> or agent hook).
- The browser opens the review tab (e.g.
http://localhost:59902).
- Without clicking anything on screen, immediately press Down Arrow, Page Down, or Space.
- Observed: Nothing scrolls.
- Click inside the central document pane and press the same keys.
- Observed: The document now scrolls as expected.
Expected Behavior
Either the main scrollable document container should automatically receive focus on mount (e.g., ref.current?.focus() or tabIndex={0} on the scrollable container), or global scroll keys should delegate scroll events to the active document viewport so keyboard reading works immediately upon launch.
Environment
Description
When a review session opens in the browser, the main text/markdown content container is not focused by default. Pressing keyboard navigation keys (Down, Up, Page Down, Space) does nothing until the user manually clicks inside the document reader area.
This breaks keyboard-first workflows and requires an unnecessary mouse interaction every time a plan review starts.
Steps to Reproduce
plannotator annotate <file>or agent hook).http://localhost:59902).Expected Behavior
Either the main scrollable document container should automatically receive focus on mount (e.g.,
ref.current?.focus()ortabIndex={0}on the scrollable container), or global scroll keys should delegate scroll events to the active document viewport so keyboard reading works immediately upon launch.