osx-global-keypress-with-flags

Global key press event handler for OS X (Mac Os). This fork also emits flags.

Usage no npm install needed!

<script type="module">
  import osxGlobalKeypressWithFlags from 'https://cdn.skypack.dev/osx-global-keypress-with-flags';
</script>

README

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.

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