Skip to main content

default_keymap

Function default_keymap 

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

The default list shortcuts:

KeysAction
ArrowDownAction::Next
ArrowUpAction::Previous
HomeAction::First
EndAction::Last
PageDownAction::NextPage
PageUpAction::PreviousPage
Shift+ArrowDownAction::ExtendNext
Shift+ArrowUpAction::ExtendPrevious
EnterAction::Activate
SpaceAction::Select
Mod+A (Ctrl, or Cmd on macOS)Action::SelectAll

The list resolves these itself, only while it has focus, so they never clash with other components. Pass a changed keymap with VirtualList::keymap.