You can try iohook module. Using is pretty simple: const ioHook = require('iohook'); ioHook.on("keypress", event => { console.log(event); // {keychar: 'f', ...
確定! 回上一頁