pub fn default_keymap() -> Keymap<Action>Available on crate feature
tree only.Expand description
The default tree shortcuts:
| Keys | Action |
|---|---|
ArrowDown | Action::Next |
ArrowUp | Action::Previous |
Home | Action::First |
End | Action::Last |
ArrowRight | Action::Expand |
ArrowLeft | Action::Collapse |
Enter | Action::Activate |
Space | Action::Select |
* | Action::ExpandSiblings |
Shift+ArrowDown | Action::ExtendNext |
Shift+ArrowUp | Action::ExtendPrevious |
Mod+A (Ctrl, or Cmd on macOS) | Action::SelectAll |
Letters and digits jump to the next node starting with them. The tree
resolves these itself, only while it has focus, so they never clash
with other components. Pass a changed keymap with Tree::keymap.