#897 keyboard shortcuts added#902
Conversation
|
@dhruv-jani-0808 is attempting to deploy a commit to the magic-peach1's projects Team on Vercel. A member of the Team first needs to authorize it. |
👋 Thanks for your PR, @dhruv-jani-0808!Welcome to Reframe — a browser-based video editor built for everyone 🎬
What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
|
|
@dhruv-jani-0808 please resolve conflicts |
|
Hey @dhruv-jani-0808! This PR had merge conflicts with
CI has been re-triggered. If anything looks wrong, feel free to push additional changes. |
|
hey @magic-peach |
|
@dhruv-jani-0808 This is an impressive comprehensive implementation — keyboard shortcuts, undo/redo history, overlay selection, and a help modal all in one PR. The build/lint/typecheck CI hasn't run on this PR yet. Please push an update to trigger full CI. Also note that PR #908 adds a similar keyboard shortcut reference panel — if both get merged, there would be duplicate UI. We'll review both and merge the best one, but we need CI to pass first. Could you also confirm:
Once CI passes, this will be prioritized for review! |
1b50d61 to
6af74dc
Compare
|
Hi @magic-peach ! I have successfully resolved all merge conflicts locally with the latest
✅ Genuinely New Features Added in this PR:
Please let me know if you need any other adjustments once you review! |
Description
This PR implements comprehensive global Keyboard Shortcuts and a robust Settings History (Undo/Redo) engine inside the Reframe video editor. It delivers a premium, highly tactile desktop editing experience with full cross-platform compatibility (macOS vs. Windows/Linux) and accessibility support.
Key Changes Made:
Global Keyboard Shortcuts Handler (
useKeyboardShortcuts.ts):INPUT,TEXTAREA,SELECT, or customisContentEditablecontainers).Spacebar/Arrows, browser-default undo onCtrl/Cmd + Z, and backspace page history navigation).Spacebar→ Play / Pause video.Arrow Left/Arrow Right→ Seek video backward/forward by 5 seconds.Ctrl/Cmd + Z→ Undo settings change.Ctrl/Cmd + Shift + ZORCtrl/Cmd + Y→ Redo settings change.Delete/Backspace→ Delete active overlay.?(Shift +/) → Toggle Shortcuts Help Modal.Undo/Redo History Stack (
useVideoEditor.ts):past,present,future) for storing Settings Recipes.400msaggregation threshold to group rapid drag events (like adjusting brightness, contrast, saturation, or video trim ranges) into a single, cohesive history entry.Selectable Overlay & Deletion (
ImageOverlay.tsx):tabIndex={0}) and selection highlights on the image details card.border-film-500 ring-2 ring-film-500/30 bg-film-500/10).Visual Controls & Help Menu Modal (
VideoEditor.tsx&OnboardingTour.tsx):Related Issue
Closed #897
Type of Contribution
Participant Info
Screen Recording
reframe.mp4
Checklist
bun run lintpasses (no ESLint errors)bunx tsc --noEmitpasses (no TypeScript errors)aria-label/ accessible namesconsole.logstatements left in