iohook icon indicating copy to clipboard operation
iohook copied to clipboard

Only listen for Global Keyboard Shortcuts?

Open chrisspiegl opened this issue 4 years ago • 1 comments

Expected Behavior

This may be mostly a feature request.

I like how this library does the keyboard capturing but I do not need the part of it that does the mouse tracking.

Expectation would be to either have options or dedicated start functions for different modes.

Current Behavior

ioHook.start() starts listening for just about everything.

Possible Solution

Implementation of something like:

ioHook.start({
  keyboardEvents: true,
  mouseEvents: false,
})

My assumption is that this would use less CPU power.

I am aware that I can selectively listen for events but I assume that the capturing and firing of the unnecessary events could be reduced.

Thank you for your consideration 🌸

chrisspiegl avatar Jun 21 '21 13:06 chrisspiegl

Will definitely add this once I get to features.

ash0x0 avatar Jun 26 '21 15:06 ash0x0