Skip to content

feat(inbox): Shift+Arrow keyboard selection for reports#1608

Open
posthog[bot] wants to merge 1 commit intomainfrom
posthog-code/shift-arrow-inbox-selection
Open

feat(inbox): Shift+Arrow keyboard selection for reports#1608
posthog[bot] wants to merge 1 commit intomainfrom
posthog-code/shift-arrow-inbox-selection

Conversation

@posthog
Copy link
Copy Markdown
Contributor

@posthog posthog bot commented Apr 10, 2026

Summary

  • Adds Shift+Arrow Up/Down to extend/contract selection in the inbox report list, following the standard desktop pattern (Finder, Mail.app)
  • Introduces selectExactRange store method that replaces (not merges) the selection, so reversing direction correctly contracts the range
  • Tracks a separate keyboard cursor position so the anchor stays fixed during Shift+Arrow navigation

Test plan

  • Open inbox with multiple reports
  • Arrow Up/Down still navigates single-select as before
  • Shift+Arrow Down extends selection downward from current item
  • Shift+Arrow Up extends selection upward from current item
  • Reversing direction (e.g. Shift+Down then Shift+Up) contracts the selection
  • Clicking a report resets the anchor for subsequent Shift+Arrow
  • Shift+Click range selection still works independently
  • Unit tests pass: pnpm --filter code test

Created with PostHog Code

Arrow Up/Down now extends selection when Shift is held, following the
standard desktop pattern (Finder, Mail.app). A new `selectExactRange`
store method replaces (rather than merges) the selection so that reversing
direction correctly contracts the range.

Generated-By: PostHog Code
Task-Id: c0bd48e9-c803-4835-8e1d-a18797660c05
@Twixes Twixes marked this pull request as ready for review April 10, 2026 14:16
@Twixes Twixes requested a review from a team April 10, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants