ElectronMenuItemConstructorOptions.click method
ElectronMenuItemConstructorOptions › click
Unofficial
Will be called when the menu item is clicked.Signature:
click(menuItem: ElectronMenuItem, browserWindow: ElectronBrowserWindow | undefined, event: KeyboardEvent): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| menuItem | ElectronMenuItem | The menu item that was clicked. |
| browserWindow | ElectronBrowserWindow | undefined | The focused window, or undefined if none. |
| event | KeyboardEvent | The keyboard event associated with the click. |
Returns: void — Nothing.