What problem does it solve?
It solves the friction of adding, editing, and validating keyboard shortcuts in LobeHub so users can trigger actions reliably without shortcut conflicts.
Core Features & Use Cases
- Hotkey registration workflow: Add new hotkeys by extending the
HotkeyEnum and registering them in HOTKEYS_REGISTRATION with correct key combos and scopes.
- Internationalization support: Provide user-facing titles and descriptions via i18n entries in
src/locales/default/hotkey.ts.
- Hook-based activation: Expose shortcuts through
useHotkeyById via hotkey hooks so chat-scoped actions work as expected.
- UI tooltip integration: Render a
<Tooltip> that communicates the assigned shortcut to users.
Quick Start
Use the hotkey skill to add a new chat-scoped shortcut by extending HotkeyEnum, registering it with combineKeys([Key.Mod, ...]) in HOTKEYS_REGISTRATION, adding i18n for its title/description, and wiring it through the appropriate useHotkeyById hook before rendering it via a Tooltip.