diff --git a/menus/darwin.cson b/menus/darwin.cson index 6fff290e2..52b7a5bc8 100644 --- a/menus/darwin.cson +++ b/menus/darwin.cson @@ -19,7 +19,7 @@ { type: 'separator' } { label: 'Install Shell Commands', command: 'window:install-shell-commands' } { type: 'separator' } - { label: 'Services', submenu: [] } + { label: 'Services', role: 'services', submenu: [] } { type: 'separator' } { label: 'Hide Atom', command: 'application:hide' } { label: 'Hide Others', command: 'application:hide-other-applications' } @@ -184,6 +184,7 @@ { label: 'Window' + role: 'window' submenu: [ { label: 'Minimize', command: 'application:minimize' } { label: 'Zoom', command: 'application:zoom' } @@ -194,6 +195,7 @@ { label: 'Help' + role: 'help' submenu: [ { label: 'Terms of Use', command: 'application:open-terms-of-use' } { label: 'Documentation', command: 'application:open-documentation' } diff --git a/src/menu-helpers.coffee b/src/menu-helpers.coffee index aa346200c..8ab10c048 100644 --- a/src/menu-helpers.coffee +++ b/src/menu-helpers.coffee @@ -46,7 +46,7 @@ normalizeLabel = (label) -> label.replace(/\&/g, '') cloneMenuItem = (item) -> - item = _.pick(item, 'type', 'label', 'enabled', 'visible', 'command', 'submenu', 'commandDetail') + item = _.pick(item, 'type', 'label', 'enabled', 'visible', 'command', 'submenu', 'commandDetail', 'role') if item.submenu? item.submenu = item.submenu.map (submenuItem) -> cloneMenuItem(submenuItem) item