hotkey

Automates multilingual keyboard shortcut implementation across a project.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Staysr/lobe-windos-build --skill hotkey-staysr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hotkey
Source: https://github.com/Staysr/lobe-windos-build/tree/main/.agents/skills/hotkey
Command: npx skills add https://github.com/Staysr/lobe-windos-build --skill hotkey-staysr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up consistent keyboard shortcuts across a codebase can be error-prone and hard to maintain.

Core Features & Use Cases

  • Standardizes hotkey constants and registration.
  • Automates translation hooks and UI tooltips for accessibility.
  • Use Case: When adding a new keyboard shortcut for a feature, follow a repeatable pattern to ensure consistency.

Quick Start

To add a new hotkey, update the constants, register it, add i18n translations, create and register the hook, and optionally provide a tooltip.

Frequently Asked Questions about hotkey

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

FAQPage Schema
How do I add keyboard shortcuts to my UI code consistently?

To manage keyboard shortcuts consistently, define hotkey constants, register them, add i18n translations, create and register the hook, and optionally provide a tooltip. This standardizes shortcut behavior across your project.

What is the best way to standardize hotkey registration across a codebase?

Standardizing hotkey registration involves applying a repeatable pattern that includes defining constants, registering the hotkey, updating i18n translations, and implementing hooks. This prevents error-prone manual setups and ensures maintainability.

How do I add internationalization translations for keyboard shortcuts?

To add internationalization for keyboard shortcuts, you apply automated translation hooks and UI tooltips after registering the hotkey. This ensures shortcut descriptions and tooltips are accessible across different languages.

Can I set up global and context-scoped hotkeys in the same project?

Yes, you can set up global and context-scoped hotkeys in the same project. The implementation supports both global behavior and context-scoped behavior, allowing you to manage different shortcut activation zones consistently.

What components do I need to configure when implementing a new keyboard shortcut?

Implementing a new keyboard shortcut requires updating constants, registering the hotkey, adding i18n translations, creating and registering the hook, and optionally providing a tooltip. A structured multi-step guide ensures all components are configured.

Why are my keyboard shortcuts inconsistent across different modules?

Keyboard shortcuts become inconsistent when added without a repeatable pattern. Standardizing hotkey constants, registration, i18n, and hooks through a structured implementation process eliminates these maintenance and consistency errors.