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::HotkeyScope;

/// A registered hotkey.
///
/// Represents a single keyboard shortcut with associated metadata
/// for display and matching against user input.
#[derive(Debug, Clone)]
pub struct Hotkey {
    /// Key combination (e.g., "q", "Ctrl+C", "Tab").
    pub key: String,
    /// Human-readable description.
    pub description: String,
    /// Scope/context where this hotkey is active.
    pub scope: HotkeyScope,
    /// Priority for conflict resolution (higher = more important).
    pub priority: u32,
}