pub fn default_keymap() -> Keymap<Action>Available on crate feature
data-table only.Expand description
The default data table shortcuts:
| Keys | Action |
|---|---|
ArrowDown | Action::Next |
ArrowUp | Action::Previous |
Home | Action::First |
End | Action::Last |
PageDown | Action::NextPage |
PageUp | Action::PreviousPage |
Space | Action::Select |
Enter | Action::Activate |
Mod+A (Ctrl, or Cmd on macOS) | Action::SelectAll |
Escape | Action::ClearSelection |
The table resolves these itself, only while it has focus, so they never
clash with other components. Pass a changed keymap with
DataTable::keymap.