Skip to content

refactor(web): remap event jump to s and hardcore to h - #2758

Merged
cursor[bot] merged 7 commits into
mainfrom
cursor/remap-s-h-shortcuts-c2d9
Aug 11, 2026
Merged

refactor(web): remap event jump to s and hardcore to h#2758
cursor[bot] merged 7 commits into
mainfrom
cursor/remap-s-h-shortcuts-c2d9

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Bare Shift no longer shows event-jump chips or toggles Hardcore Mode, so Tab / Shift+Tab stop flashing shortcut labels.

  • s previews event-jump keycaps (Esc exits; week-view s still starts Sunday/Saturday prefixes while active)
  • h toggles Hardcore Mode; yields to an armed e… edit sequence; clears jump chips on enter
  • Removes the shared Shift-tap gesture / hold detector
  • Also fixes overnight timed-event save (end clock was stamped onto the start day), which was failing CI near UTC midnight

Simplicity

Letter keys replace the Shift press/hold/double-tap state machine. Shared isBareLetterKey, merged Hardcore keydown listeners, deleted dead silenceOff handoff path.

Automated validation

  • Focused web unit/integration tests for jump, Hardcore, edit-sequence coexistence, overnight save, and keyboardPlace midday pins: pass
  • Playwright: e2e/timed/shift-hold-event-hints.spec.ts, e2e/timed/keyboard-only-mode.spec.ts, e2e/onboarding/interactive-tour.spec.ts: 8 pass
  • bun lint: clean (pre-existing warnings only)

Independent review

Fixed confirmed findings:

  1. Hardcore h now yields while e… is armed
  2. Entering Hardcore resets event-jump so Esc is not double-owned

Overnight save fix reviewed as correct.

Test plan

  • bun test:web on shortcut / datetime / day nudge / DayCalendarGrid files
  • bunx playwright test e2e/timed/shift-hold-event-hints.spec.ts e2e/timed/keyboard-only-mode.spec.ts e2e/onboarding/interactive-tour.spec.ts
  • bun lint
  • Browser: week view s / h / Shift+Tab at http://localhost:9080
Open in Web Open in Cursor 

cursoragent and others added 6 commits August 11, 2026 23:00
Shift no longer previews jump chips or toggles Hardcore Mode, so
Shift+Tab stops flashing shortcut labels. Use s for event jump and h
for Hardcore; drop the shared Shift-tap gesture.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
mapToBackend applied the end clock time onto the start calendar day, so
near-midnight create drafts (11:30 PM–12:30 AM) failed Zod validation and
left the event form open — breaking the onboarding tour Save step.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Avoid near-midnight flakes where the next 15-minute Shift+Arrow move
crosses day boundaries.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Yield to an armed e… sequence, and clear jump chips when entering
Hardcore so Esc does not need two presses.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane marked this pull request as ready for review August 11, 2026 23:37
Jump listeners register before RootShell, so unmatched printables were
marking h prevented before Hardcore could toggle.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor
cursor Bot merged commit a4ba1e0 into main Aug 11, 2026
20 checks passed
@cursor
cursor Bot deleted the cursor/remap-s-h-shortcuts-c2d9 branch August 11, 2026 23:48
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.

2 participants