Skip to content

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): void

Parameters:

ParameterTypeDescription
menuItemElectronMenuItemThe menu item that was clicked.
browserWindowElectronBrowserWindow | undefinedThe focused window, or undefined if none.
eventKeyboardEventThe keyboard event associated with the click.

Returns: voidNothing.