for example, I want to use electron as a gadget to record keystrokes.
the challenge now is how to know that each button is pressed and it"s useless to just write on the page because you want to run the program in the background.
if you are using globalShortcut, the api will report the following error.
are there any other implementation ideas?