Skip to main content

default_keymap

Function default_keymap 

Source
pub fn default_keymap() -> Keymap<Action>
Available on crate feature tree only.
Expand description

The default tree shortcuts:

KeysAction
ArrowDownAction::Next
ArrowUpAction::Previous
HomeAction::First
EndAction::Last
ArrowRightAction::Expand
ArrowLeftAction::Collapse
EnterAction::Activate
SpaceAction::Select
*Action::ExpandSiblings
Shift+ArrowDownAction::ExtendNext
Shift+ArrowUpAction::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.