Merge pull request #464 from yuya-oc/fix-focus-on-close

Set focus to the next top-level window when close the main window
This commit is contained in:
Yuya Ochiai
2017-03-13 22:58:58 +09:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -17,6 +17,13 @@ Release date: TBD
#### All Platforms
- Fixed an issue where an unexpected row appeared after switching channels with `CTRL+K` shortcut. [#426](https://github.com/mattermost/desktop/issues/426)
#### Windows
- Fixed an issue where the main window still has focus and exists
in the classic Alt+Tab switcher after it's closed.
[#430](https://github.com/mattermost/desktop/issues/430)
[#431](https://github.com/mattermost/desktop/issues/431)
----
## Release v3.6.0

View File

@@ -529,8 +529,8 @@ app.on('ready', () => {
} else { // Minimize or hide the window for close button.
event.preventDefault();
function hideWindow(window) {
window.hide();
window.blur(); // To move focus to the next top-level window in Windows
window.hide();
}
switch (process.platform) {
case 'win32':