pub trait EditGesture: 'static {
// Required methods
fn starts_edit(&self, context: &EditGestureContext) -> bool;
fn after_commit(&self, key: EditCommitKey) -> AfterCommit;
}Expand description
Which input opens the editor of an editable cell, and where the focus goes after a commit. Asked once per input on the UI thread.
The default is StandardEditGesture, Excel’s. An AG Grid-like gesture
opens the editor on a single click, stays on Enter and edits the next
editable cell on Tab (MoveAndEdit(CellMove::NextEditable)).
Required Methods§
Sourcefn starts_edit(&self, context: &EditGestureContext) -> bool
fn starts_edit(&self, context: &EditGestureContext) -> bool
Returns true if context.input() opens the editor. Command (F2)
and Clear (Backspace, Delete) are Actions: rebind their keys
instead of refusing them here.
Sourcefn after_commit(&self, key: EditCommitKey) -> AfterCommit
fn after_commit(&self, key: EditCommitKey) -> AfterCommit
Where the focus goes after a commit by key.