T21a round 2 fixes
- a field notes its selection when a key goes down, so undo of typing selects what the typing replaced - reading order skips table cells merged away, so Up and Down across blocks land on cells that show
This commit is contained in:
1 parent
f3e2c6c27f
commit
187f54253e
6 files changed
+68
-3
No files matched your search
@@ -76,6 +76,8 @@ pub struct BlockEditor {
|
||||
current: Snapshot,
|
||||
/// The field that last held focus, as block and field.
|
||||
caret: Option<(u64, usize)>,
|
||||
/// The selection a key went down on, before its field changed.
|
||||
typed_from: Option<(u64, usize, std::ops::Range<usize>)>,
|
||||
pub(crate) people: Vec<SharedString>,
|
||||
pub(crate) diagram: Option<RenderDiagram>,
|
||||
_synced: Subscription,
|
||||
@@ -95,6 +97,7 @@ impl BlockEditor {
|
||||
caret: None,
|
||||
},
|
||||
caret: None,
|
||||
typed_from: None,
|
||||
people: Vec::new(),
|
||||
diagram: None,
|
||||
_synced: synced,
|
||||
|
||||
Reference in new issue
Block a user