Browse Source

MenuItem: Use 'Close Window' for 'close' role label

On OS X, the standard label that's used for the 'close' role is 'Close
Window'. You can see this in the default macOS apps from Apple.
Feross Aboukhadijeh 8 years ago
parent
commit
d6a7ced32c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/api/menu-item-roles.js

+ 1 - 1
lib/browser/api/menu-item-roles.js

@@ -7,7 +7,7 @@ const roles = {
     }
   },
   close: {
-    label: 'Close',
+    label: process.platform === 'darwin' ? 'Close Window' : 'Close',
     accelerator: 'CommandOrControl+W',
     windowMethod: 'close'
   },