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::HotkeyRegistry;
use crate::services::hotkey_service::HotkeyScope;

impl HotkeyRegistry {
    /// Get the active scope.
    ///
    /// # Returns
    ///
    /// `Some(scope)` if a scope is active, `None` otherwise.
    ///
    /// # Example
    ///
    /// ```rust
    /// use ratatui_toolkit::services::hotkey::HotkeyRegistry;
    ///
    /// let registry = HotkeyRegistry::new();
    /// let scope = registry.get_active_scope();
    /// ```
    pub fn get_active_scope(&self) -> Option<HotkeyScope> {
        self.active_scope.clone()
    }
}