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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::services::hotkey_service::Hotkey;
use crate::services::hotkey_service::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>,
}