Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
room.subscribe(`mouse is active`, ({ assertions }) => {
;(assertions.length && ioHook.start()) || ioHook.stop()
})
}
deactivate() {
ioHook.stop();
globalShortcut.unregister(this.pkgConfig.keys.escape);
globalShortcut.unregister(this.pkgConfig.keys.up);
globalShortcut.unregister(this.pkgConfig.keys.left);
globalShortcut.unregister(this.pkgConfig.keys.down);
globalShortcut.unregister(this.pkgConfig.keys.right);
globalShortcut.unregister(this.pkgConfig.keys.click);
globalShortcut.unregister(this.pkgConfig.keys.speed);
globalShortcut.unregister(this.pkgConfig.keys.rightClick);
this.keys = {
up: false, left: false, down: false, right: false,
speed: false, click: false, rightClick: false,
};
clearInterval(this.intervalLoop);
}