Skip to content

feat(ux): add keyboard shortcuts cheat sheet#17

Merged
openhoat merged 2 commits intomainfrom
feat/ux-shortcuts
Mar 4, 2026
Merged

feat(ux): add keyboard shortcuts cheat sheet#17
openhoat merged 2 commits intomainfrom
feat/ux-shortcuts

Conversation

@openhoat
Copy link
Copy Markdown
Owner

@openhoat openhoat commented Mar 3, 2026

Summary

  • Add centralized keyboard shortcuts configuration (src/constants/shortcuts.ts)
  • Create KeyboardShortcutsModal component with grouped shortcut display and kbd badges
  • Add shortcuts button (keyboard icon) in Header to open the cheat sheet
  • Update execute/cancel button titles with shortcut hints (Ctrl+Enter, Esc)
  • Wire global Ctrl+/ (and ?) handler in App.tsx to toggle shortcuts modal
  • Add i18n translations for all shortcut keys in en.json and fr.json
  • Add unit tests for KeyboardShortcutsModal

Test plan

  • Open app and press Ctrl+/ — shortcuts modal should appear
  • Press ? outside a text input — shortcuts modal should appear
  • Click the keyboard icon in the Header — shortcuts modal should appear
  • Press Escape in the modal — modal should close
  • Click the close button (header or footer) — modal should close
  • Hover the Execute command button — title includes "(Ctrl+Enter)"
  • Hover the Cancel command button — title includes "(Esc)"
  • Run npm run validate — all checks pass

openhoat added 2 commits March 4, 2026 08:57
- add centralized keyboard shortcuts configuration (src/constants/shortcuts.ts)
- create KeyboardShortcutsModal component with grouped shortcuts display
- add shortcuts button (keyboard icon) to Header
- update execute and cancel button titles with shortcut hints (ctrl+enter, esc)
- wire global ctrl+/ handler in App.tsx to toggle shortcuts modal
- add i18n translations for shortcuts in en.json and fr.json
- add unit tests for KeyboardShortcutsModal
@openhoat openhoat force-pushed the feat/ux-shortcuts branch from 66db543 to f31bd2d Compare March 4, 2026 08:03
@openhoat openhoat merged commit d686886 into main Mar 4, 2026
@openhoat openhoat deleted the feat/ux-shortcuts branch March 4, 2026 08:07
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.

1 participant