ElectronApp.focus method
ElectronApp › focus
Unofficial
Focuses the app. On Linux, focuses the first visible window; on macOS, makes the app active; on Windows, focuses the app's first window.Signature:
focus(options?: ElectronFocusOptions | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| options? | ElectronFocusOptions | undefined | The focus options. |
Returns: void