:bug: Add platform predicate for menu item action
authorPrince J Wesley <princejohnwesley@gmail.com>
Thu, 3 Mar 2016 03:07:16 +0000 (08:37 +0530)
committerPrince J Wesley <princejohnwesley@gmail.com>
Thu, 3 Mar 2016 03:08:32 +0000 (08:38 +0530)
atom/browser/api/lib/menu-item.js

index d58a0fa..eef8881 100644 (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);
         }
       };