mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add BrowserWindow.setAutoHideCursor for macOS
The `disableAutoHideCursor` BrowserWindow option can be used to control auto-hiding behavior when the window is created. This new API is needed to dynamically change the behavior after the fact.
This commit is contained in:
@@ -1218,6 +1218,12 @@ Returns `BrowserWindow` - The parent window.
|
||||
|
||||
Returns `BrowserWindow[]` - All child windows.
|
||||
|
||||
#### `win.setAutoHideCursor(autoHide)` _macOS_
|
||||
|
||||
* `autoHide` Boolean
|
||||
|
||||
Controls whether to hide cursor when typing.
|
||||
|
||||
#### `win.setVibrancy(type)` _macOS_
|
||||
|
||||
* `type` String - Can be `appearance-based`, `light`, `dark`, `titlebar`,
|
||||
|
||||
Reference in New Issue
Block a user