ratatui_toolkit/vt100_term/keybindings/methods/with_copy_and_exit.rs
1//! VT100TermKeyBindings::with_copy_and_exit builder method
2
3use crate::vt100_term::keybindings::VT100TermKeyBindings;
4use crossterm::event::KeyCode;
5
6impl VT100TermKeyBindings {
7 /// Set the keys to copy and exit copy mode
8 pub fn with_copy_and_exit(mut self, keys: Vec<KeyCode>) -> Self {
9 self.copy_and_exit = keys;
10 self
11 }
12}