Skip to main content

ratatui_toolkit/vt100_term/keybindings/methods/
with_copy_selection.rs

1//! VT100TermKeyBindings::with_copy_selection builder method
2
3use crate::vt100_term::key_binding::KeyBinding;
4use crate::vt100_term::keybindings::VT100TermKeyBindings;
5
6impl VT100TermKeyBindings {
7    /// Set the key to copy selection
8    pub fn with_copy_selection(mut self, binding: KeyBinding) -> Self {
9        self.copy_selection = binding;
10        self
11    }
12}