Repository navigation
Closed
Description
Discussed in #76
Originally posted by janledermann February 9, 2026
Implementation Plan
Add user-customizable global keyboard shortcuts so actions can be triggered even when BetterCapture is not focused.
Shortcuts
| Shortcut | Action | Behavior |
|---|---|---|
| Toggle Recording | Start or stop recording | If recording → stop. If idle with content selected → start. If idle with no content selected → trigger selection based on the user's content selection mode preference (Pick Content or Select Area). |
| Select Content | Open the system content picker | Calls presentPicker() |
| Select Area | Open the area selection overlay | Calls presentAreaSelection() |
- No default key combinations. All shortcuts start unconfigured. Users set their own in a new "Shortcuts" tab in Settings.
- The recorder UI automatically warns about conflicts with system shortcuts and app menu shortcuts.
Approach
Use sindresorhus/KeyboardShortcuts (v2.4+) — a well-maintained Swift package that provides global hotkeys within the App Sandbox, with no Accessibility permission required.
Why not native APIs?
NSEvent.addGlobalMonitorForEventsrequires Accessibility permission for key events.CGEvent.tapCreateis incompatible with App Sandbox.- Both require building recorder UI, conflict detection, and storage from scratch.
Full rationale documented in docs/decisions/0001-keyboard-shortcuts-implementation.md.
Changes
- Add
KeyboardShortcutsSPM dependency - Define shortcut names (
toggleRecording,selectContent,selectArea) inModel/KeyboardShortcutNames.swift - Add
toggleRecording()method toRecorderViewModelwith smart selection fallback - Add "Shortcuts" tab to Settings window with
KeyboardShortcuts.Recorderviews - Register shortcut callbacks in
BetterCaptureApp.swift - Extract
ContentSelectionModeenum to its own file (Model/ContentSelectionMode.swift) for shared access
Reacted by Jason Lee, Patrick Rushton and Fabian Schulz
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity