ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crossterm::event::KeyCode;

use crate::primitives::tree_view::keybindings::TreeKeyBindings;

impl Default for TreeKeyBindings {
    fn default() -> Self {
        Self {
            next: vec![KeyCode::Char('j'), KeyCode::Down],
            previous: vec![KeyCode::Char('k'), KeyCode::Up],
            expand: vec![KeyCode::Char('l'), KeyCode::Right],
            collapse: vec![KeyCode::Char('h'), KeyCode::Left],
            toggle: vec![KeyCode::Enter],
            goto_top: vec![KeyCode::Char('g')],
            goto_bottom: vec![KeyCode::Char('G')],
        }
    }
}