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
Mac OS X 10.10.2
Seems related to #2724
Works as expected in 0.11.3
Works as expected in 0.11.4
Fails in 0.11.5
Fails in 0.11.6
Fails in 0.12.0-alpha2
Not tested on Windows or Linux
The nw.js app registers a global shortcut that shows and hides the app window.
When the nw.js application loads, the window has the focus. A form field, auto-focused in the child html receives key strokes.
Pressing the global shortcut, minimizes the window.
Pressing the global shortcut again restores the window.
If another application window acquires focus while the nw.js app was minimized, the restored nw.js app window does not receive focus.
// Listen for shortcut's active event.
shortcut.on('active', function () {
//toggle application window visibility
if (isVisible) {
win.minimize();
} else {
win.restore();
}
});
// Open and focus application window with appServer content
win.window.location = appServer;
win.on('loaded', function () {
win.show();
win.focus(); // <-- Works as expected
isVisible = true;
});
win.on('restore', function () {
win.focus(); // <-- Does not focus window in 0.11.5+
isVisible = true;
});
win.on('minimize', function () {
isVisible = false;
});
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Mac OS X 10.10.2
Seems related to #2724
Works as expected in 0.11.3
Works as expected in 0.11.4
Fails in 0.11.5
Fails in 0.11.6
Fails in 0.12.0-alpha2
Not tested on Windows or Linux
The nw.js app registers a global shortcut that shows and hides the app window.
When the nw.js application loads, the window has the focus. A form field, auto-focused in the child html receives key strokes.
Pressing the global shortcut, minimizes the window.
Pressing the global shortcut again restores the window.
If another application window acquires focus while the nw.js app was minimized, the restored nw.js app window does not receive focus.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: