Add "event" parameter for "click" handler of MenuItem

This commit is contained in:
Cheng Zhao 2016-06-22 11:22:14 +09:00
parent e6327fb015
commit 8d08e215b2
5 changed files with 11 additions and 9 deletions

View file

@ -11,8 +11,8 @@ Create a new `MenuItem` with the following method:
### new MenuItem(options)
* `options` Object
* `click` Function - Will be called with `click(menuItem, browserWindow)` when
the menu item is clicked
* `click` Function - Will be called with
`click(menuItem, browserWindow, event)` when the menu item is clicked
* `role` String - Define the action of the menu item; when specified the
`click` property will be ignored
* `type` String - Can be `normal`, `separator`, `submenu`, `checkbox` or