summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-07 01:20:07 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-07 01:20:07 +0200
commitb8979c65d435806d405df26d9c844a25cdbc54e3 (patch)
tree57423742580ccdccb336406730e878c091b168c0
parentf47e85c3bb3c11607bbff69dcd511fd577ced9f9 (diff)
downloadopencut-b8979c65d435806d405df26d9c844a25cdbc54e3.tar.gz
feat: select element on insert
-rw-r--r--apps/web/src/lib/commands/timeline/element/insert-element.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/insert-element.ts b/apps/web/src/lib/commands/timeline/element/insert-element.ts
index 9f0bf941..b06631d8 100644
--- a/apps/web/src/lib/commands/timeline/element/insert-element.ts
+++ b/apps/web/src/lib/commands/timeline/element/insert-element.ts
@@ -109,6 +109,10 @@ export class InsertElementCommand extends Command {
}
editor.timeline.updateTracks(updatedTracks);
+
+ return {
+ select: [{ trackId: targetTrackId, elementId: this.elementId }],
+ };
}
undo(): void {