ElectronTray.on('right-click') method
ElectronTray › on(‘right-click’)
Unofficial
Registers a listener that is invoked when the tray icon is right clicked.darwin and win32 only. Signature:
on(event: "right-click", listener: (event: ElectronKeyboardEvent, bounds: ElectronRectangle) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "right-click" | The event name. |
| listener | (event: ElectronKeyboardEvent, bounds: ElectronRectangle) => void | The event handler receiving the event and the bounds of the tray icon. |
Returns: this — This tray instance.