Set focus to the next top-level window when close the main window
This commit is contained in:
@@ -529,8 +529,8 @@ app.on('ready', () => {
|
|||||||
} else { // Minimize or hide the window for close button.
|
} else { // Minimize or hide the window for close button.
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
function hideWindow(window) {
|
function hideWindow(window) {
|
||||||
window.hide();
|
|
||||||
window.blur(); // To move focus to the next top-level window in Windows
|
window.blur(); // To move focus to the next top-level window in Windows
|
||||||
|
window.hide();
|
||||||
}
|
}
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
case 'win32':
|
case 'win32':
|
||||||
|
Reference in New Issue
Block a user