summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/timeline.tsx
diff options
context:
space:
mode:
authorAnwarul Islam <anwaarulislaam@gmail.com>2025-07-15 04:32:36 +0600
committerAnwarul Islam <anwaarulislaam@gmail.com>2025-07-15 04:32:36 +0600
commit59f4098f752ff9f992f622e2984278d7b1ba91a4 (patch)
tree716ea9aa26d80c3d82abe77f1e90ed4fb834bf89 /apps/web/src/components/editor/timeline.tsx
parent1106aeeb60b493f85bd70685f066362aa43fcd6e (diff)
downloadopencut-59f4098f752ff9f992f622e2984278d7b1ba91a4.tar.gz
refactor: remove keyboard shortcuts for better integration later
Diffstat (limited to 'apps/web/src/components/editor/timeline.tsx')
-rw-r--r--apps/web/src/components/editor/timeline.tsx28
1 files changed, 0 insertions, 28 deletions
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx
index cf139aa2..2f0e3d91 100644
--- a/apps/web/src/components/editor/timeline.tsx
+++ b/apps/web/src/components/editor/timeline.tsx
@@ -341,34 +341,6 @@ export function Timeline() {
return () => window.removeEventListener("keydown", handleKeyDown);
}, [redo]);
- // Keyboard shortcuts for snapping
- useEffect(() => {
- const handleKeyDown = (e: KeyboardEvent) => {
- // Don't trigger when typing in input fields or textareas
- if (
- e.target instanceof HTMLInputElement ||
- e.target instanceof HTMLTextAreaElement
- ) {
- return;
- }
-
- // Only trigger when timeline is focused or mouse is over timeline
- if (
- !isInTimeline &&
- !timelineRef.current?.contains(document.activeElement)
- ) {
- return;
- }
-
- if (e.key === "s" || e.key === "S") {
- e.preventDefault();
- toggleSnapping();
- }
- };
- window.addEventListener("keydown", handleKeyDown);
- return () => window.removeEventListener("keydown", handleKeyDown);
- }, [toggleSnapping, isInTimeline]);
-
// Old marquee system removed - using new SelectionBox component instead
const handleDragEnter = (e: React.DragEvent) => {