app: adding browser-window-focus/blur events

This commit is contained in:
deepak1556 2015-06-18 11:29:08 +05:30
parent ad59393641
commit 2f36f5ca78
3 changed files with 40 additions and 1 deletions

View file

@ -87,6 +87,20 @@ Emitted when the application is activated while there is no opened windows. It
usually happens when user has closed all of application's windows and then
click on the application's dock icon.
## Event: browser-window-blur
* `event` Event
* `window` BrowserWindow
Emitted when a [browserWindow](browser-window.md) gets blurred.
## Event: browser-window-focus
* `event` Event
* `window` BrowserWindow
Emitted when a [browserWindow](browser-window.md) gets focused.
## app.quit()
Try to close all windows. The `before-quit` event will first be emitted. If all