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:

Parameter Type Description
event "double-click" The event name.
listener (event: ElectronKeyboardEvent, bounds: ElectronRectangle) => void The event handler receiving the event and the bounds of the tray icon.

Returns: thisThis tray instance.