我正在尝试检测console选项卡外的事件,我已经尝试了(对于linux),(对于browser)和(给出错误)。我怎么能做到呢?
我找到办法了。我使用了,但新版本后的版本崩溃了,于是调用了方法。
iohook.on('keypress', (res) => { let key = String.fromCharCode(res.rawcode); console.log(key); }); iohook.start();