The open-source CapCut alternative
fix space key to play
Maze Winther21dac9f09e17
diff --git a/apps/web/src/stores/keybindings-store.ts b/apps/web/src/stores/keybindings-store.tsindex 7fa0da5e..febcaa30 100644--- a/apps/web/src/stores/keybindings-store.ts+++ b/apps/web/src/stores/keybindings-store.ts@@ -206,6 +206,9 @@ function getPressedKey(ev: KeyboardEvent): string | null {const key = (ev.key ?? "").toLowerCase();const code = ev.code ?? "";+ if (code === "Space" || key === " " || key === "spacebar" || key === "space")+ return "space";+// Check arrow keysif (key.startsWith("arrow")) {return key.slice(5);@@ -213,7 +216,6 @@ function getPressedKey(ev: KeyboardEvent): string | null {// Check for special keysif (key === "tab") return "tab";- if (key === " " || key === "space") return "space";if (key === "home") return "home";if (key === "end") return "end";if (key === "delete") return "delete";