Skip to content

ElectronApp.on('browser-window-focus') method

ElectronApp › on(‘browser-window-focus’)

Unofficial

Registers a listener for the browser-window-focus event.

Emitted when a browserWindow gets focused.

Signature:

on(event: "browser-window-focus", listener: (event: ElectronEvent, window: ElectronBrowserWindow) => void): this

Parameters:

ParameterTypeDescription
event"browser-window-focus"The event name.
listener(event: ElectronEvent, window: ElectronBrowserWindow) => voidThe event handler.

Returns: thisThis ElectronApp instance.