Repository navigation
fix(web): Space opens event context menu on focused grid cards - #5281
Merged
Merged
Conversation
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>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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 theContextMenuItemskey-repeat guard. With the guard removed, the e2e fails."or"keycap is gone.edit-menukeys are["Space", "."]withkeyAlternatives: true.ShortcutKeysand the public/shortcutscatalog render a plain-text "or" between the keycaps.Verify
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 onorigin/mainin this sandbox, which runs bun 1.4.4 while the repo pins 1.3.14.FLAKY (passed on rerun):
🤖 Generated with Claude Code
https://claude.ai/code/session_01HmwVQELuTHUvGPswdsQGKq