diff --git a/src/components/VideoEditor.tsx b/src/components/VideoEditor.tsx
index a12c1f41..88c920c7 100644
--- a/src/components/VideoEditor.tsx
+++ b/src/components/VideoEditor.tsx
@@ -22,7 +22,7 @@ import { getPresetById } from "@/lib/presets";
import { cn } from "@/lib/utils";
import {
Layers, Crop, Scissors, RotateCw, Volume2, Type,
- SlidersHorizontal, Zap, AlertTriangle, Github, Copy
+ SlidersHorizontal, Zap, AlertTriangle, Github, Copy, Undo2, Redo2,
} from "lucide-react";
import OnboardingTour from "./OnboardingTour";
import { useKeyboardShortcuts } from "@/hooks/useKeyboardShortcuts";
@@ -153,6 +153,14 @@ function KeyboardShortcutsPanel() {
keys: [?],
label: "Toggle this panel",
},
+ {
+ keys: [Ctrl, +, Z],
+ label: "Undo",
+ },
+ {
+ keys: [Ctrl, +, Shift, +, Z],
+ label: "Redo",
+ },
];
return (
@@ -211,6 +219,7 @@ export default function VideoEditor() {
recommendedPreset,
currentTime,
toggleSound,
+ undo, redo, canUndo, canRedo,
} = useVideoEditor();
useKeyboardShortcuts({
@@ -222,6 +231,7 @@ export default function VideoEditor() {
status,
cancelExport,
onToggleShortcutsModal: () => {},
+ undo, redo,
});
const [copied, setCopied] = useState(false);
@@ -704,6 +714,28 @@ return () => {
+
+