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): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "double-click" | |
| listener | ($event: ElectronKeyboardEvent, bounds: ElectronRectangle) => void | The event handler receiving the event and the bounds of the tray icon. |
Returns: this — This tray instance.