Node Webkit Detect Program Focus Event -


is possible detect when user focuses on program, doing alt-tab program?

i window.onfocus when window being selected, when have window minimized, don't receive anything.

you can try nw.js window api

// load library var gui = require('nw.gui');  // reference window , tray var win = gui.window.get();  win.on('focus', function() {   console.log('window focused'); }); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -