Merge pull request #4656 from princejwesley/menu-item-click

Add platform predicate for menu item action
This commit is contained in:
Cheng Zhao 2016-03-05 21:13:59 +09:00
commit c0b87c1a62

View file

@ -67,7 +67,7 @@ MenuItem = (function() {
}
} else if (typeof click === 'function') {
return click(_this, focusedWindow);
} else if (typeof _this.selector === 'string') {
} else if (typeof _this.selector === 'string' && process.platform === 'darwin') {
return Menu.sendActionToFirstResponder(_this.selector);
}
};