Merge remote-tracking branch 'origin/main' into dc-slide-actions-list

This commit is contained in:
Harrison Booth
2026-10-30 14:01:06 -05:00
15 changed files with 55 additions and 36 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ impl Session {
let Some(f) = st.shape(id).and_then(|sh| cmd::table::table_frame(st, sh)) else { return Ok(()) };
let size = if column { f.cols.get(index) } else { f.heights.get(index) }.copied().unwrap_or(0.0);
let (start, frame) = (f.local(p), f.affine);
if !st.selection.text.as_ref().is_some_and(|t| t.shape == id) {
if st.selection.text.as_ref().is_none_or(|t| t.shape != id) {
self.select(|_, sel| {
sel.shapes = vec![id];
sel.text = None;
+2 -3
View File
@@ -455,12 +455,11 @@ impl Session {
self.execute("guide.move", &json!({"index": index, "pos": pos}))?
};
}
Some(Drag::Move { moved: false, enter_text: Some((id, at)), .. }) => {
Some(Drag::Move { moved: false, enter_text: Some((id, at)), .. })
// Plain click on text: caret at the click (in a table, in the clicked cell).
if self.edit_text_at(id, at)? {
if self.edit_text_at(id, at)? => {
out = json!({"editing": id});
}
}
Some(Drag::Marquee { start, add }) => {
let r = Rect::from_points(start, p);
self.tool.marquee = None;