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.
This commit is contained in:
Feross Aboukhadijeh 2016-07-25 15:13:17 -07:00
parent 729b84f2ca
commit d6a7ced32c

View file

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