Skip to content

fix(web): Space opens event context menu on focused grid cards - #5281

Merged
tyler-dane merged 3 commits into
mainfrom
cursor/grid-event-space-menu-ec60
Nov 18, 2026
Merged

tyler-dane merged 3 commits into
mainfrom
cursor/grid-event-space-menu-ec60

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Space on a focused grid event opens its context menu (like right-click); only Enter opens the full event form.

Follow-up fixes in 4125ac6:

  • Held Space: the e2e now presses keyboard.down("Space") three more times after the first menu item has focus. It asserts the menu stays open, the item keeps focus, and nothing activates. A unit test covers the ContextMenuItems key-repeat guard. With the guard removed, the e2e fails.
  • Alternative keycaps: the fake "or" keycap is gone. edit-menu keys are ["Space", "."] with keyAlternatives: true. ShortcutKeys and the public /shortcuts catalog render a plain-text "or" between the keycaps.
  • Modified Space (Shift/Ctrl/Alt/Meta) on a card now calls preventDefault, so the page doesn't scroll, but it does not open the menu. Unit test added.

Verify

bun run verify
VERDICT: FAIL (test:core only, local bun version; see below)

Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e (no new failures).

PRE-EXISTING: packages/core/src/server/http-server.test.ts › configureHttpServer › does not reject a request that exceeds maxHeadersCount. It fails identically on origin/main in this sandbox, which runs bun 1.4.4 while the repo pins 1.3.14.

FLAKY (passed on rerun):

  • test:a11y: e2e/accessibility/booking-a11y.spec.ts › settings booking section › reconnect banner has no automatically detectable accessibility violations
  • test:e2e: e2e/calendars/calendar-experience.spec.ts › day view separates visible calendars into distinct columns

🤖 Generated with Claude Code

https://claude.ai/code/session_01HmwVQELuTHUvGPswdsQGKq

Enter keeps opening the event form; Space dispatches the same anchored
context menu as right-click and period. Update shortcuts, pointer hints,
and tests including a focused grid event Playwright spec.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Boot bundle: 577.4 KB gzip (+0.0 KB vs main)

Ignore Space repeat and modifiers on event cards, prevent menu activation
on held Space, and subscribe GridDraft to pastePlace. Keep edit-menu runtime
binding on period with Space-only pointer copy and legend Space or period.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
- e2e: hold Space with three repeat downs after the menu item has focus,
  assert the menu stays open and nothing activates
- unit-test the ContextMenuItems key-repeat guard
- replace the fake "or" keycap with a keyAlternatives flag; ShortcutKeys
  and the public catalog render a plain-text "or" between keycaps
- modified Space (Shift/Ctrl/Alt/Meta) on a card prevents page scroll but
  does not open the menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmwVQELuTHUvGPswdsQGKq
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 3c68026 Nov 18, 2026
23 checks passed
@tyler-dane
tyler-dane deleted the cursor/grid-event-space-menu-ec60 branch November 18, 2026 15:34
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.

3 participants