diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-16 14:37:08 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-16 14:37:08 +0200 |
| commit | 8bc26539ebe44d6ff0d74d86ef316934c7f18faf (patch) | |
| tree | aab9487ca4a44a5d9f12b3b2b6718bc28d01a303 /apps/web/src/components/editor-provider.tsx | |
| parent | 527d5888974f64abc33dfd7af4ec4dc7d2eb293c (diff) | |
| download | opencut-8bc26539ebe44d6ff0d74d86ef316934c7f18faf.tar.gz | |
cleanup (this doesn't work)
Diffstat (limited to 'apps/web/src/components/editor-provider.tsx')
| -rw-r--r-- | apps/web/src/components/editor-provider.tsx | 6 |
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]);
|
