Timeline: Shift-click on a group row adds it to the selection (#1751)

This commit is contained in:
tylerjenningsw
2026-10-27 13:44:37 -04:00
parent dd12ed8f9c
commit 2856803d59
+3 -1
View File
@@ -2721,7 +2721,9 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
let gr = ui.interact(gr_rect, egui::Id::unique(("grow", uid)), Sense::click());
app.auto.add(&format!("timeline.group.{uid}.name"), gr_rect, name);
if gr.clicked() && uid & (WAVE_BIT | GEOM_BIT) == 0 {
actions.push(("prop.select".into(), json!({"layer": layer.id.0, "prop": uid, "selectKeys": false})));
// Shift adds the group to the selection, as on a property row (#1751).
let add = ui.input(|i| i.modifiers.shift);
actions.push(("prop.select".into(), json!({"layer": layer.id.0, "prop": uid, "selectKeys": false, "add": add})));
}
if gr.double_clicked() {
if fx.is_some() {