mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-02 16:30:36 -06:00
Merge remote-tracking branch 'origin/main' into dc-slide-actions-list
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user