Closed EugeneHerasymchuk closed 6 years ago
Please refer to EventEmitter2 documentation on how to remove listeners.
Something like gkm.events.removeAllListeners(eventName)
should do the trick.
Note that gkm spawns a single listener process (for both keyboard and mouse) in Java (running gkm.jar) that will run until your program is terminated.
Is it possible to add a hook to remove all listeners? It's quite useful in event handler: