question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Finding an alternative to iohook

See original GitHub issue

Is your feature request related to a problem? Please describe. Yes the problem is #1112 and i feel the only solution to fix this is by finding an alternative to iohook (global keyup/down event listener). I think this has to be done as it causes our electron wrapper to not be able to run on Linux systems! And keeping Linux aside for once, it looks like iohook isn’t being maintained anymore!

Describe the solution you’d like A nice alternative to iohook can be found or someone codes one themselves

Describe alternatives you’ve considered None found tbh…

Additional context Not any additional context ig but i was the one who used iohook in the first place (lol) Tho it was cuz i wasn’t able to find anything else…

EDIT:

Many people are flooding the comments with different libraries that either don’t work or are not viable. So below are a few things we are looking for in a ideal library:

  • Needs to be a global key event listener (eg: keyup/keydown events)
  • Needs to be C/C++ based. As those libraries wouldn’t require side loading other tools such as JVMs, Python, etc. (if you find/make any library based on something else but it won’t require side loading software it’s still viable)
  • Needs to be a maintained library.

Please keep these points in mind before suggesting a library or making a pull request featuring one.

Here’s why i made this edit btw #1497

EDIT 2: This issue has been resolved all thanks to @StratusFearMe21 's library globkey being implemented in #1538 & #1536

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
amitojsingh366commented, Mar 21, 2021

outdated, but could be forked if we need to change/updated anything? https://www.npmjs.com/package/keypress (edit: not tried it yet, just browsing for ideas)

Yea ive looked into this before. It dosen’t support global events. We need global events

0reactions
amitojsingh366commented, Mar 24, 2021

Issue has been resolved! See original comment for more info

Read more comments on GitHub >

github_iconTop Results From Across the Web

ioHook on electron consumes too much CPU. Is there anyway ...
I am tracking users' mouse movement and upon receiving mouse movement emitter, I dispatch an event that does it work. ioHook.on('mousemove', ...
Read more >
Can't use iohook on a simple node app · Issue #275 - GitHub
I'm having a similar problem on Linux Mint 20 with Node 14, it simply exits without any errors or messages. I've tried this...
Read more >
iohook - Bountysource
Hi, I have created an electron app that uses the ioHook library in it, as soon as I pack the app running (using...
Read more >
electron-shortcut - Npms.io
A Electron's globalShortcut replacement based on uiohook-napi. local_offerelectron, keyboard, shortcut, iohook, uiohook, libuiohook.
Read more >
node-iohook - npm
node-iohook. Binding of libuiohook for nodejs. About. This package help nodejs developer to catch events on mouse and keyboard and register ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found