hotkey

Implement and manage keyboard shortcuts with registration, internationalization, and hooks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dodevproject/lobe-chat --skill hotkey-dodevproject
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hotkey
Source: https://github.com/dodevproject/lobe-chat/tree/main/.agents/skills/hotkey
Command: npx skills add https://github.com/dodevproject/lobe-chat --skill hotkey-dodevproject

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured guide for developers to implement and manage keyboard shortcuts within the application, ensuring a consistent and accessible user experience.

Core Features & Use Cases

  • Adding New Hotkeys: Step-by-step instructions for integrating new keyboard shortcuts.
  • Registering Shortcuts: Guidance on how to register default hotkeys and their associated actions.
  • Internationalization: Includes steps for adding translations for hotkey descriptions.
  • Use Case: A developer needs to add a new shortcut to clear the chat history. This Skill outlines the exact code modifications required across different files and provides best practices for implementation.

Quick Start

Follow the steps in this guide to add a new hotkey for clearing chat messages.

Frequently Asked Questions about hotkey

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new keyboard shortcuts to my application?

Manage keyboard shortcuts by updating constants, registering default actions, and adding internationalization. This approach ensures new hotkeys are properly scoped, grouped, and checked for conflicts across different platforms.

What is the best way to manage keyboard shortcut conflicts and scoping?

Manage keyboard shortcuts by updating constants, registering default actions, and adding internationalization. This approach ensures new hotkeys are properly scoped, grouped, and checked for conflicts across different platforms.

How do I add internationalization to keyboard shortcut descriptions?

Add internationalization to keyboard shortcut descriptions by including translation steps during the registration process. This ensures hotkey descriptions are accessible and properly localized for users across different languages.

Does implementing keyboard shortcuts require platform compatibility checks?

Implementing keyboard shortcuts requires platform compatibility checks to ensure consistent behavior. Addressing platform differences during development prevents hotkey conflicts and ensures an accessible experience across all operating systems.

How do I register default hotkeys for specific application actions?

Register default hotkeys by defining their associated actions and updating the necessary application constants. This process links specific keyboard combinations to functions, ensuring shortcuts are available immediately upon application load.