feat: add evt listeners for SetAlwaysOnTop (#14951)

* feat: add evt listeners for SetAlwaysOnTop

* only emit one event on AlwaysOnTop change

* docs: add new alwaysontop event

* dont emit if theres no change

* address feedback from review
This commit is contained in:
Shelley Vohr 2018-10-04 11:02:16 -07:00 committed by Charles Kerr
parent d810f08b75
commit 27bbf6a3c6
7 changed files with 24 additions and 0 deletions

View file

@ -542,6 +542,15 @@ Emitted when the window enters a full-screen state triggered by HTML API.
Emitted when the window leaves a full-screen state triggered by HTML API.
#### Event: 'always-on-top-changed' _macOS_
Returns:
* `event` Event
* `isAlwaysOnTop` Boolean
Emitted when the window is set or unset to show always on top of other windows.
#### Event: 'app-command' _Windows_
Returns: