Skip to content

VictorTaelin/osx-global-keypress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osx-global-keypress

Global key press event handler for OS X (Mac Os).

This is a fork that emits flags too, allowing you to identify if special keys like shift and command are pressed. Check this link for a list of supported flags.

It also emits mouse down events, with -1 being left, -2 being right and -3 being middle button.

Install

npm i --save osx-global-keypress

Usage

See test.js example

Important: you need use "sudo" for running your js scripts which use osx-global-keypress module.

MIT © Dmitry Pavlovsky

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 58.1%
  • JavaScript 39.1%
  • Shell 2.8%