🐛 Add platform predicate for menu item action

This commit is contained in:
Prince J Wesley 2016-03-03 08:37:16 +05:30
parent 46c6233b62
commit f02affbc18

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);
}
};