summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor-provider.tsx
diff options
context:
space:
mode:
authorgantiro <gantiro396@gmail.com>2025-07-16 20:53:00 +0700
committergantiro <gantiro396@gmail.com>2025-07-16 20:53:00 +0700
commit955f6331f258143daa62cb6e004c6df089c55c64 (patch)
treef1e4ed03cbfb35408ae5282dfe35371e535e5eb8 /apps/web/src/components/editor-provider.tsx
parent2974fd89a942f4e3173642b165f228e2af604ae7 (diff)
parent3371a6889634f326063351295faca9a56c566706 (diff)
downloadopencut-955f6331f258143daa62cb6e004c6df089c55c64.tar.gz
Merge branch 'main' into feature/optimize-timeline-ruler
Diffstat (limited to 'apps/web/src/components/editor-provider.tsx')
-rw-r--r--apps/web/src/components/editor-provider.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/web/src/components/editor-provider.tsx b/apps/web/src/components/editor-provider.tsx
index 38255956..d970f86d 100644
--- a/apps/web/src/components/editor-provider.tsx
+++ b/apps/web/src/components/editor-provider.tsx
@@ -3,6 +3,7 @@
import { useEffect } from "react";
import { Loader2 } from "lucide-react";
import { useEditorStore } from "@/stores/editor-store";
+import { useKeyboardShortcuts } from "@/hooks/use-keyboard-shortcuts";
interface EditorProviderProps {
children: React.ReactNode;
@@ -11,6 +12,11 @@ interface EditorProviderProps {
export function EditorProvider({ children }: EditorProviderProps) {
const { isInitializing, isPanelsReady, initializeApp } = useEditorStore();
+ useKeyboardShortcuts({
+ enabled: !isInitializing && isPanelsReady,
+ context: "editor",
+ });
+
useEffect(() => {
initializeApp();
}, [initializeApp]);