ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::services::hotkey::Hotkey;
use crate::services::hotkey::HotkeyScope;

pub mod constructors;
pub mod methods;
pub mod traits;

/// Registry for managing hotkeys.
///
/// Stores all registered hotkeys and provides methods for
/// registration, querying, and filtering by scope.
pub struct HotkeyRegistry {
    /// All registered hotkeys.
    pub(crate) hotkeys: Vec<Hotkey>,
    /// Active scope for filtering.
    pub(crate) active_scope: Option<HotkeyScope>,
}