I get in several Electron projects, and Iām trying to understand how you could listen to any keystrokes or and track the path of the mouse when the application is running in the background. I use the menubar plugin, so the application is still running in the background.
I tried using the Globally Shortcut API, but it looks like these are only shortcuts and you cannot register individual keystrokes. I also looked through the API and have not yet found an event for keystrokes and mouse movements outside the main screen of the application.
javascript javascript-events keyboard-events electron
cameronmoreau
source share