【文件属性】:
文件名称:global-keypress:全局按键事件发射器
文件大小:12KB
文件格式:ZIP
更新时间:2021-02-03 19:00:22
nodejs javascript macos linux keyboard
全局按键
全局按键事件发射器
注意:需要sudo特权。 如果没有以root身份运行,则会出现GUI提示符,要求进行sudo访问。
支持Mac OS X和Linux。
安装
npm install global-keypress
发展历程
编译本机模块
npm run compile
用法
const GK = require ( 'global-keypress' ) ;
// instantiate
const gk = new GK ( ) ;
// launch keypress daemon process
gk . start ( ) ;
// emitted events by
【文件预览】:
global-keypress-master
----bin()
--------.gitignore(0B)
----index.js(4KB)
----package.json(908B)
----compile.sh(581B)
----test()
--------index.js(451B)
----src()
--------mac()
--------linux()
----LICENSE.md(1KB)
----.gitignore(62B)
----README.md(1KB)
----.editorconfig(439B)