this.commandId = ++nextCommandId
const click = options.click
- this.click = (focusedWindow) => {
+ this.click = (event, focusedWindow) => {
// Manually flip the checked flags when clicked.
if (this.type === 'checkbox' || this.type === 'radio') {
this.checked = !this.checked
return webContents != null ? webContents[methodName]() : void 0
}
} else if (typeof click === 'function') {
- return click(this, focusedWindow)
+ return click(this, focusedWindow, event)
} else if (typeof this.selector === 'string' && process.platform === 'darwin') {
return Menu.sendActionToFirstResponder(this.selector)
}