1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Hotkey registration and management service.
//!
//! Provides a centralized system for registering, managing, and querying
//! hotkeys across the application. Supports context-scoped hotkeys,
//! priorities, and automatic help text generation.
//!
//! # Example
//!
//! ```no_run
//! use ratatui_toolkit::services::hotkey::{Hotkey, HotkeyRegistry, HotkeyScope};
//!
//! let mut registry = HotkeyRegistry::new();
//!
//! // Register a global hotkey
//! registry.register(Hotkey::new("q", "Quit application")
//! .scope(HotkeyScope::Global));
//!
//! // Register a tab-specific hotkey
//! registry.register(Hotkey::new("j", "Move down")
//! .scope(HotkeyScope::Tab("Markdown")));
//!
//! // Get all hotkeys for display
//! let hotkeys = registry.get_hotkeys();
//! for hotkey in hotkeys {
//! println!("{} - {}", hotkey.key, hotkey.description);
//! }
//! ```
pub use Hotkey;
pub use HotkeyRegistry;
pub use HotkeyScope;
pub use HasHotkeys;
pub use HotkeyHandler;