Merge pull request #4656 from princejwesley/menu-item-click
Add platform predicate for menu item action
This commit is contained in:
commit
c0b87c1a62
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue