Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(editor): add pendingTextEdit state for inline text editing

Richie McIlroy3f4b23370f7e
diff --git a/apps/desktop/src/routes/editor/context.ts b/apps/desktop/src/routes/editor/context.ts
index a4a7d9f60..64768a25e 100644
--- a/apps/desktop/src/routes/editor/context.ts
+++ b/apps/desktop/src/routes/editor/context.ts
@@ -1083,6 +1083,10 @@ export const [EditorContextProvider, useEditorContext] = createContextProvider(
hoveredMaskTime: null as number | null,
audioPicker: null as number | null,
audioReplace: null as number | null,
+ // Index of a just-created text segment that should open its
+ // inline canvas editor as soon as its overlay mounts (set by the
+ // Add-track picker, consumed by TextOverlay).
+ pendingTextEdit: null as number | null,
},
});