mrfabbri / hotkey

HotKey is a simple Node.js module for registering global hotkeys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HotKey

HotKey is a simple Node.js module for registering global hotkeys (currently on OS X).

HotKey exposes an EventEmitter API (for hotkeyDown, hotkeyUp events).

NOTE: you have to specify at least a modifier for the hotkey to be effective.

Example usage:

var HotKey = require('hotkey');
 
var myHotkey = new HotKey('R', 'cmd+shift');

myHotkey.on('hotkeyPressed', function hotKeyPressed() {
    // do something...
});

LICENSE

Hotkey is released under the MIT license.

About

HotKey is a simple Node.js module for registering global hotkeys

License:MIT License


Languages

Language:JavaScript 52.4%Language:C++ 38.2%Language:HTML 6.9%Language:Python 2.5%