All Projects → jaz303 → JFHotkeyManager

jaz303 / JFHotkeyManager

Licence: other
Global hotkey manager for Cocoa

Programming Languages

objective c
16641 projects - #2 most used programming language

Labels

Projects that are alternatives of or similar to JFHotkeyManager

Autohotkey
⚙️ My Autohotkey productivity suite that includes shortcuts, hotstrings, hotkeys, apps/utilities, AutoCorrect
Stars: ✭ 113 (+253.13%)
Mutual labels:  hotkeys
Ahkdll
AutoHotkey_H
Stars: ✭ 177 (+453.13%)
Mutual labels:  hotkeys
keybind
ClojureScript key bindings (shortcut) library
Stars: ✭ 85 (+165.63%)
Mutual labels:  hotkeys
Pyhooked
Pure Python hotkey hook, with thanks to pyHook and pyhk
Stars: ✭ 150 (+368.75%)
Mutual labels:  hotkeys
Onemore
A OneNote add-in with simple, yet powerful and useful features
Stars: ✭ 163 (+409.38%)
Mutual labels:  hotkeys
Icanhazshortcut
simple shortcut manager for macOS
Stars: ✭ 204 (+537.5%)
Mutual labels:  hotkeys
Aoe2tools
A lightweight program that lets you easily play your Steam version of Age of Empires 2 HD in Voobly format. In addition to Mega Utilities
Stars: ✭ 82 (+156.25%)
Mutual labels:  hotkeys
Chordly
Chordly is a javascript library that may be used to detect and act upon key sequences entered by a user.
Stars: ✭ 14 (-56.25%)
Mutual labels:  hotkeys
Winhue
Controlling the Philips Hue lighting system from your Windows PC.
Stars: ✭ 167 (+421.88%)
Mutual labels:  hotkeys
keys
⌨️ Keyboard Shortcuts for 'shiny'
Stars: ✭ 37 (+15.63%)
Mutual labels:  hotkeys
Win Vind
Simple Vim Key Binder for Windows. You can operate Windows with keybindings like Vim.
Stars: ✭ 151 (+371.88%)
Mutual labels:  hotkeys
Hotkeys
🤖 A declarative library for handling hotkeys in Angular applications
Stars: ✭ 158 (+393.75%)
Mutual labels:  hotkeys
Is Hotkey
Check whether a browser event matches a hotkey.
Stars: ✭ 211 (+559.38%)
Mutual labels:  hotkeys
Jumpy
The fastest way to jump around files and across visible panes in Atom
Stars: ✭ 116 (+262.5%)
Mutual labels:  hotkeys
Hotkeys
🔤 A small C# (.NET) Library which allows binding of global HotKeys to any Application's Windows (including Windows Apps such as explorer.exe), even in Background. (using P/Invokes)
Stars: ✭ 66 (+106.25%)
Mutual labels:  hotkeys
Cropper
Point and shoot screen captures
Stars: ✭ 100 (+212.5%)
Mutual labels:  hotkeys
Angular2 Hotkeys
Keyboard shortcuts for Angular 2 apps
Stars: ✭ 179 (+459.38%)
Mutual labels:  hotkeys
GlotDict
This extension for WordPress polyglots implements new features to improve the quality of translation/reviews!
Stars: ✭ 52 (+62.5%)
Mutual labels:  hotkeys
react-shortcut
Convenient React component that detects if the given key combination is pressed, and triggers a callback
Stars: ✭ 16 (-50%)
Mutual labels:  hotkeys
Qhotkey
A global shortcut/hotkey for Desktop Qt-Applications
Stars: ✭ 234 (+631.25%)
Mutual labels:  hotkeys

JFHotkeyManager

© 2010 Jason Frame [ [email protected] / @jaz303 ]
Released under the MIT License.

JFHotkeyManager is a small Cocoa convenience wrapper around Carbon's mechanism for implementing global hotkeys. It allows you to add hotkeys to your app with a couple of lines of code.

Installation

Copy JFHotkeyManager.h and JFHotkeyManager.m into your Xcode project

Usage

Hotkeys can be bound either by individually specifying keycode/modifiers, or symbolically using a string. The latter is more convenient but probably less reliable across international keyboards.

// Initialise a new hotkey manager
JFHotkeyManager *hkm = [[JFHotkeyManager alloc] init];

// Bind a hotkey by key code reference number and modifiers:
// (when hotkey is triggered, sends mySelector1 to self)
[hkm bindKeyRef:49
  withModifiers:cmdKey + optionKey + shiftKey
         target:self
         action:@selector(mySelector1)];

// Bind a hotkey symbolically
// (when hotkey is triggered, sends mySelector2 to self)
[hkm bind:@"command shift up" target:self action:@selector(mySelector2)];

The bind methods return an opaque value of type JFHotKeyRef that can be latter passed to unbind: to unbind the hotkey.

Credits

Program Global Hotkeys in Cocoa Easily by Dustin Bachrach

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].