ratkit 0.2.14

A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
Documentation
use crate::services::hotkey_service::Hotkey;
use crate::services::hotkey_service::HotkeyRegistry;

impl HotkeyRegistry {
    /// Get all registered hotkeys.
    ///
    /// # Returns
    ///
    /// A slice of all registered hotkeys.
    ///
    /// # Example
    ///
    /// ```rust
    /// use ratatui_toolkit::services::hotkey::HotkeyRegistry;
    ///
    /// let registry = HotkeyRegistry::new();
    /// let all = registry.get_hotkeys();
    /// ```
    pub fn get_hotkeys(&self) -> &[Hotkey] {
        &self.hotkeys
    }
}