Skip to content

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): void

Parameters:

Parameter Type Description
options? ElectronFocusOptions | undefined The focus options.

Returns: void