pub fn default_keymap() -> Keymap<Action>Available on crate feature
log-viewer only.Expand description
The default log shortcuts:
| Keys | Action |
|---|---|
ArrowDown | Action::Next |
ArrowUp | Action::Previous |
Home | Action::First |
End | Action::Last |
PageDown | Action::NextPage |
PageUp | Action::PreviousPage |
Shift+ArrowDown | Action::ExtendNext |
Shift+ArrowUp | Action::ExtendPrevious |
Space | Action::Select |
Mod+A (Ctrl, or Cmd on macOS) | Action::SelectAll |
Mod+C | Action::CopySelection |
Mod+F | Action::FocusSearch |
F3 | Action::NextMatch |
Shift+F3 | Action::PreviousMatch |
Escape | Action::ClearSearch |
Ctrl+L | Action::Clear |
The log resolves these itself, only while it has focus, which it takes
when any part of it is pressed. Keys the search field uses, such as
typing, Home and End, stay with the field. While the field has focus,
Enter and F3 step to the next match and Shift+Enter and Shift+F3 to the
previous one, Mod+F selects its text, and Escape clears the text, then
a second Escape leaves the field. Action::TogglePause
and Action::ToggleWrap are on the toolbar and have no chord until
one is bound. Pass a changed keymap with LogViewer::keymap.