ElectronMenuItem.click method
ElectronMenuItem › click
Unofficial
The click handler that is fired when the menu item receives a click event.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.