Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix(ui): a title's words reach the monitor as they are typed

Gareth Gwyn5eaf66318bcd
diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rs
index 71873cb7..1eb46bdd 100644
--- a/src/crates/concat/src/studio.rs
+++ b/src/crates/concat/src/studio.rs
@@ -3467,6 +3467,11 @@ impl Studio {
ClipTextField::FontFamily => text.font_family = value.to_owned(),
_ => {}
}
+ // The words are on the echo now; show them. A title being typed is
+ // painted in memory at the monitor's size, the way a grip drag is,
+ // so the picture keeps up with the keystrokes while the commit
+ // still lands once, on the way out of the field.
+ self.request_preview();
}
pub fn clip_set_colour(&mut self, field: ClipTextField, value: slint::Color) {
diff --git a/src/crates/concat/ui/inspector/text-panel.slint b/src/crates/concat/ui/inspector/text-panel.slint
index a1d92cfd..4cd6c218 100644
--- a/src/crates/concat/ui/inspector/text-panel.slint
+++ b/src/crates/concat/ui/inspector/text-panel.slint
@@ -104,8 +104,13 @@ export component TextPanel inherits VerticalLayout {
selection-background-color: Theme.accent;
selection-foreground-color: Theme.on-accent;
- // Committed on the way out rather than per keystroke, so a
- // title being typed is one change and not forty.
+ // Every keystroke goes to the echo so the monitor shows
+ // the words as they are typed; the commit waits for the
+ // way out, so a title being typed is one change and not
+ // forty.
+ edited => {
+ root.set-text(ClipTextField.content, self.text);
+ }
changed has-focus => {
if (!self.has-focus) {
root.set-text(ClipTextField.content, self.text);