qmetrics.net

KeyboardShortcuts

User-customizable global hotkeys for macOS applications

KeyboardShortcuts screenshot

KeyboardShortcuts is a Swift package that adds sandbox-safe, user-assignable global keyboard shortcuts to macOS apps, with SwiftUI and Cocoa recorder views.

Overview

KeyboardShortcuts is a Swift package for macOS apps that need user-customizable global keyboard shortcuts. It is fully sandboxed and compatible with Mac App Store distribution, and is used in several shipping macOS applications.

Developers register strongly typed shortcut names, present a recorder view so users pick key combinations, and listen for events when shortcuts are pressed. The recorder stores choices in UserDefaults and warns if a shortcut conflicts with the system or the app menu. SwiftUI and Cocoa recorder components are both available.

The API supports key-down and key-up listeners, repeating actions while a key is held on newer macOS versions, connecting shortcuts to NSMenuItem entries, and dynamic shortcut names for user-defined actions. It can also record in-app shortcuts without registering global hotkeys when used with bindings.

The package relies on remaining Carbon APIs for global shortcut registration where Apple has not shipped replacements. It does not trigger accessibility permission dialogs, does not support media keys in sandboxed apps, and localizes recorder UI strings.

Key features

  • Global hotkey registration
  • SwiftUI shortcut recorder view
  • Cocoa recorder component
  • Conflict detection with system menus
  • UserDefaults persistence
  • Key-down and key-up listeners
  • NSMenuItem shortcut binding
  • Sandbox and App Store compatible

Use cases

  • macOS menu bar app hotkeys
  • User-defined workflow triggers
  • Sandboxed utility shortcuts
  • In-app customizable bindings
  • Repeating actions while key held

Tags

Similar software

Wechaty

Conversational RPA SDK for multi-platform chatbots

Wechaty lets developers write a bot once and run it on WeChat, WhatsApp, and other chat networks through swappable puppet providers, including Docker-based setups.

★ 23.6k⟳ yesterdayApache-2.0

Darling

macOS userspace translation layer for running Darwin software on Linux

Darling lets many macOS command-line tools and packages run on Linux without a full macOS virtual machine, using a Mach-O loader and Darwin-compatible libraries.

★ 13.9k⟳ todayGPL-3.0
Frameworks & PlatformsDesktop/CLI app

OpenClaw

Open-source personal AI assistant running on your devices and chat apps

Open-source AI assistant that runs on your own computer and answers in chat apps such as WhatsApp, Telegram, Slack and Discord. State, memory and credentials stay on your hardware.

★ 395.3k⟳ todayMIT
Open Source Alternative to:ChatGPTChatGPT Plus+3

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

n8n

Fair-code AI workflow and agent automation platform

n8n is a fair-code platform for building AI agents and automated workflows. It pairs a visual editor with custom code and links to many integrations.

★ 212.4k⟳ todaySource-available
Alternative to:IFTTTMake+2