ratatui_toolkit/primitives/tree_view/keybindings/methods/
with_goto_top.rs

1use crossterm::event::KeyCode;
2
3use crate::primitives::tree_view::keybindings::TreeKeyBindings;
4
5impl TreeKeyBindings {
6    /// Set custom keybindings for goto top
7    pub fn with_goto_top(mut self, keys: Vec<KeyCode>) -> Self {
8        self.goto_top = keys;
9        self
10    }
11}