Add focusable option
This commit is contained in:
parent
5aecd10502
commit
8eca728e0a
11 changed files with 24 additions and 23 deletions
|
@ -54,6 +54,8 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
implemented on Linux. Default is `true`.
|
||||
* `closable` Boolean - Whether window is closable. This is not implemented
|
||||
on Linux. Default is `true`.
|
||||
* `focusable` Boolean - Whether the window can be focused. Default is
|
||||
`true`.
|
||||
* `alwaysOnTop` Boolean - Whether the window should always stay on top of
|
||||
other windows. Default is `false`.
|
||||
* `fullscreen` Boolean - Whether the window should show in fullscreen. When
|
||||
|
@ -953,17 +955,10 @@ All mouse events happened in this window will be passed to the window below
|
|||
this window, but if this window has focus, it will still receive keyboard
|
||||
events.
|
||||
|
||||
### `win.setIgnoreFocus(ignore)` _OS X_ _Windows_
|
||||
### `win.setActivatable(activatable)` _Windows_
|
||||
|
||||
* `ignore` Boolean
|
||||
* `activatable` Boolean
|
||||
|
||||
Prevents the window from getting focus.
|
||||
|
||||
On OS X this API has to be called before the window shows:
|
||||
|
||||
```javascript
|
||||
let win = new BrowserWindow({show: false})
|
||||
win.setIgnoreFocus(true)
|
||||
```
|
||||
Changes whether the window can be activated.
|
||||
|
||||
[blink-feature-string]: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue