global-hotkeys

Community

Master macOS hotkeys with ease.

Authormakgunay
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you implement and manage system-wide keyboard shortcuts (hotkeys) on macOS, ensuring your applications can respond to user-defined key combinations reliably.

Core Features & Use Cases

  • System-Wide Hotkey Registration: Use Carbon's RegisterEventHotKey for robust, system-wide hotkey support, even for sandboxed applications.
  • In-App Shortcuts: Leverage SwiftUI's .onKeyPress and .keyboardShortcut for shortcuts within your application's UI.
  • Event Monitoring: Utilize NSEvent.addGlobalMonitorForEvents and addLocalMonitorForEvents for broader key event detection.
  • Use Case: Create a macOS app that triggers a specific action (e.g., opening a hidden panel) when the user presses Command + Shift + K, regardless of which application is currently active.

Quick Start

Use the global-hotkeys skill to register a system-wide hotkey for Command+Shift+A.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: global-hotkeys
Download link: https://github.com/makgunay/claude-swift-skills/archive/main.zip#global-hotkeys

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.