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 -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -