Skip to content

Fix #15: Add keyboard shortcut hints that fade in when holding Cmd - #22

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
claude/issue-15
Open

Fix #15: Add keyboard shortcut hints that fade in when holding Cmd#22
github-actions[bot] wants to merge 1 commit into
mainfrom
claude/issue-15

Conversation

@github-actions

@github-actions github-actions Bot commented Feb 1, 2026

Copy link
Copy Markdown

Closes #15

Demo

Demo

Demo

Demo

Summary

Implemented keyboard shortcut hints that smoothly fade in when the user holds down the Cmd key. The hints display common shortcuts (⌘N, ⌘P, ⌘⇧N, ⌘D, ⌘F, ⌘K) in a centered overlay with a semi-transparent background and disappear when Cmd is released.

Before & After

Before After
before after
No hints visible when using the editor Keyboard shortcuts appear in a clean overlay when holding Cmd

Files Changed

  • src/components/KeyboardHints.tsx: New component that displays shortcut hints with fade-in animation
  • src/components/KeyboardHints.css: Styles for the hint overlay with theme support (light/dark) and smooth fade-in animation
  • src/App.tsx: Added cmdHeld signal, imported KeyboardHints component, integrated into existing Cmd key handlers

Tests

  • e2e/issues/15/verify.spec.ts - Verification test with before/after assertions
  • e2e/issues/15/demo.spec.ts - Demo recording showing hints fading in and out

🤖 Generated with Claude Code

Co-Authored-By: Claude <claude@anthropic.com>
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.

Add keyboard shortcut hints that fade in when holding Cmd

1 participant