Skip to content

Commit aa5ca33

Browse files
committed
docs: add requestAccessibility method
1 parent f412619 commit aa5ca33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The following example shows how to get the currently focused window's title and
1717
```javascript
1818
const { windowManager } = require("node-window-manager");
1919

20+
windowManager.requestAccessibility(); // required on macOS
21+
2022
const window = windowManager.getActiveWindow();
2123

2224
// Prints the currently focused window title.
@@ -49,6 +51,10 @@ window.setBounds({ x: 0, y: 0 });
4951

5052
### Instance methods
5153

54+
#### windowManager.requestAccessibility() `macOS`
55+
Required before any action on macOS.
56+
- Returns `boolean`
57+
5258
#### windowManager.getActiveWindow() `Windows` `macOS`
5359

5460
- Returns [`Window`](#class-window)

0 commit comments

Comments
 (0)