ratatui_toolkit/master_layout/keybindings/methods/
is_navigate_down.rs

1//! is_navigate_down method for MasterLayoutKeyBindings
2
3use crate::master_layout::keybindings::MasterLayoutKeyBindings;
4use crossterm::event::KeyEvent;
5
6impl MasterLayoutKeyBindings {
7    /// Check if the given key event matches the navigate down key
8    pub fn is_navigate_down(&self, key: &KeyEvent) -> bool {
9        key.code == self.navigate_down.0 && key.modifiers == self.navigate_down.1
10    }
11}