Electron Focus


Is there any way to keep electron focused at all times? I’m trying to track cursor location while the electron app is running but as soon as the electron window looses focus the tracking stops. Any ideas on how to keep focused at all times or get around this all together?


You probably mean BrowserWindow’s alwaysOnTop option.