the click callback accepts an event as its third param

See https://github.com/electron/electron/blob/6d45052eeaf57faf239523b1b328cf37281ae030/lib/browser/api/menu-item.js#L52
This commit is contained in:
Markus Olsson
2017-03-16 21:36:56 +01:00
parent c8190f4e64
commit 8a5f3b9db7
+1 -1
View File
@@ -2492,7 +2492,7 @@ declare namespace Electron {
/**
* Callback when the menu item is clicked.
*/
click?: (menuItem: MenuItem, browserWindow: BrowserWindow) => void;
click?: (menuItem: MenuItem, browserWindow: BrowserWindow, event: Event) => void;
/**
* Can be normal, separator, submenu, checkbox or radio.
*/