From 5aecd1050239f6e8ec1ec57ca7cd768d4527e58a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 13 Jun 2016 16:40:02 +0900 Subject: [PATCH] docs: Document the behavior of win.setIgnoreFocus on OS X --- docs/api/browser-window.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index d3a0337..95b7601 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -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 -- 2.7.4