hotkey

Standardizes keyboard shortcuts with constants, bindings, localization, and activation hooks.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/Chenm4/VoiceChatAssistant --skill hotkey-chenm4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hotkey
Source: https://github.com/Chenm4/VoiceChatAssistant/tree/main/lobehub-main/.agents/skills/hotkey
Command: npx skills add https://github.com/Chenm4/VoiceChatAssistant --skill hotkey-chenm4

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes and implements keyboard shortcuts across an application to streamline user interactions and reduce setup friction.

Core Features & Use Cases

  • Define hotkey constants and bindings to ensure consistency across UI modules.
  • Register default shortcuts, scope management, and conflict checks to avoid overriding system controls.
  • Provide localization hooks and UI integration (tooltips) to improve discoverability and accessibility.
  • Use Case: When adding a new feature, define a hotkey, register the key binding, and expose a ready-to-use hook for activation in chat contexts.

Quick Start

Follow these steps to add a new hotkey:

  • Update the hotkey constant in src/types/hotkey.ts
  • Register the default hotkey in HOTKEYS_REGISTRATION in src/const/hotkeys.ts
  • Add an i18n translation in src/locales/default/hotkey.ts
  • Create and register the corresponding hook in src/hooks/useHotkeys/chatScope.ts
  • Optionally add a UI tooltip in the consuming component

Frequently Asked Questions about hotkey

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

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

To add a new keyboard shortcut, you define the hotkey constant, register the default binding, add an i18n translation, and create an activation hook. This ensures consistency across UI modules and reduces setup friction.

How do I localize keyboard shortcut labels for different languages?

You localize keyboard shortcut labels by adding an i18n translation in your locale files. This integrates with tooltips to improve discoverability and accessibility across different languages.

How do I prevent my custom hotkeys from overriding system controls?

To prevent overriding system controls, you use scope management and conflict checks when registering default shortcuts. This ensures your application hotkeys do not interfere with existing system controls.

How do I expose a hotkey activation hook for runtime use in chat contexts?

You expose a hotkey activation hook by creating and registering the corresponding hook in your chat scope file. This provides a ready-to-use hook for activation in chat contexts.

What is the best way to standardize keyboard shortcuts across multiple UI modules?

The best way to standardize keyboard shortcuts is to define hotkey constants and bindings centrally. This ensures consistency across UI modules and reduces setup friction for new features.