mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
🐛 Add platform predicate for menu item action
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user