ratatui_toolkit/vt100_term/keybindings/constructors/
default.rs1use crate::vt100_term::key_binding::KeyBinding;
4use crate::vt100_term::keybindings::VT100TermKeyBindings;
5use crossterm::event::KeyCode;
6
7impl Default for VT100TermKeyBindings {
8 fn default() -> Self {
9 Self {
10 enter_copy_mode: KeyBinding::ctrl(KeyCode::Char('b')),
11 copy_selection: KeyBinding::ctrl_shift(KeyCode::Char('c')),
12 copy_exit: vec![KeyCode::Esc, KeyCode::Char('q')],
13 copy_move_up: vec![KeyCode::Char('k'), KeyCode::Up],
14 copy_move_down: vec![KeyCode::Char('j'), KeyCode::Down],
15 copy_move_left: vec![KeyCode::Char('h'), KeyCode::Left],
16 copy_move_right: vec![KeyCode::Char('l'), KeyCode::Right],
17 copy_set_selection: vec![KeyCode::Char(' '), KeyCode::Enter],
18 copy_and_exit: vec![KeyCode::Char('c'), KeyCode::Char('y')],
19 }
20 }
21}