Merge pull request #1997 from deepak1556/api_app_patch

app: adding focus/blur events
This commit is contained in:
Cheng Zhao 2015-06-18 15:55:59 +08:00
commit 2cb1aa6639
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