Skip to content

ElectronTray.on('double-click') method

ElectronTray › on(‘double-click’)

Unofficial

Registers a listener that is invoked when the tray icon is double clicked. darwin and win32 only.

Signature:

on($event: "double-click", listener: ($event: ElectronKeyboardEvent, bounds: ElectronRectangle) => void): this

Parameters:

ParameterTypeDescription
$event"double-click"
listener($event: ElectronKeyboardEvent, bounds: ElectronRectangle) => voidThe event handler receiving the event and the bounds of the tray icon.

Returns: this — This tray instance.