You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the code above to handling close event and cmd + q action.
normally this code works fine.
But after mainWindow hidden, close event is not triggered.
I know that I can avoid this issue to implement menu myself.
But I think it's wrong working.
The text was updated successfully, but these errors were encountered:
I'm using this to create a global shortcut and it works even when the main window is hidden.
var gui = require('nw.gui');
var quitKeys = {
key: "Ctrl+Q"
};
var shortcutQuit = new gui.Shortcut(quitKeys);
gui.App.registerGlobalHotKey(shortcutQuit);
shortcutQuit.on('active', function() {
// quit your app
});
I'm having the same problem. When app is hidden/minimized, the osx app menu stays active. However the app cannot be quit when selecting menu->quit. Once the app is restored the menu->quit option works again. Other osx apps also leave the menu active when minimized, but it works just fine.
I'm using the code above to handling close event and cmd + q action.
normally this code works fine.
But after mainWindow hidden, close event is not triggered.
I know that I can avoid this issue to implement menu myself.
But I think it's wrong working.
The text was updated successfully, but these errors were encountered: