docs: Document the behavior of win.setIgnoreFocus on OS X

This commit is contained in:
Cheng Zhao 2016-06-13 16:40:02 +09:00
parent ce00f4a273
commit 5aecd10502

View file

@ -957,8 +957,13 @@ events.
* `ignore` Boolean
Makes the window ignore focus.
Prevents the window from getting focus.
On OS X this prevents the window from becoming key and main window.
On OS X this API has to be called before the window shows:
```javascript
let win = new BrowserWindow({show: false})
win.setIgnoreFocus(true)
```
[blink-feature-string]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in