Is there a way to capture mouse events like hover and click even when Electron window is not focused? So that my buttons' hover/click effects still work?
Right now, I need to first switch to the Electron window either by clicking or alt-tabbing for the mouse events to be captured.
I'm fairly new to js and electron and I can't seem to find anything on this. But since it works with Atom editor, I'm assuming its possible?
Do I need additional module like mentioned in this post for capturing keyboard events: Atom Electron capture all keyboard events even when app is unfocused?
Thanks! Appreciate any help.