feat: display keyboard shortcuts on toolbar buttons#788
Conversation
- Add shortcut hints to toolbar buttons via tooltip text - Integrate useKeyboardShortcutsHelp hook for consistent shortcut retrieval - Timeline toolbar: split, duplicate, delete, snapping, bookmark buttons - Preview toolbar: play/pause button - Format: tooltip text appended with '(Key)' or '(Key1 or Key2)' - Gracefully handle actions without defined shortcuts
|
@Senthil455 is attempting to deploy a commit to the OpenCut OSS Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughToolbar components across the preview and timeline now display keyboard shortcut hints in tooltips. The ChangesKeyboard Shortcut Display in Toolbar Tooltips
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Changes Made
Modified Files
apps/web/src/timeline/components/timeline-toolbar.tsxapps/web/src/preview/components/toolbar.tsxFeatures Implemented
Timeline Toolbar Shortcuts
Preview Toolbar Shortcuts
Technical Details
Implementation Approach
ToolbarButtoncomponent to accept optionalactionpropuseKeyboardShortcutsHelp()hook to retrieve shortcuts for actions${tooltip} (${keys})Code Quality
TActionWithOptionalArgsgetDisplayShortcut()utility (used in context menus)Testing Recommendations
Related Issues
Addresses keyboard shortcut discoverability enhancement by making shortcuts visible on UI elements without requiring dialog navigation.
Visual Changes
Accessibility
Summary by CodeRabbit
Release Notes