{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/7737","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/7737/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/7737/comments","events_url":"https://api.github.com/repos/electron/electron/issues/7737/events","html_url":"https://github.com/electron/electron/issues/7737","id":185196108,"number":7737,"title":"macOS: Accelerator doesn't call when MenuItem visible = false","user":{"login":"neonhomer","id":1554397,"avatar_url":"https://avatars.githubusercontent.com/u/1554397?v=3","gravatar_id":"","url":"https://api.github.com/users/neonhomer","html_url":"https://github.com/neonhomer","followers_url":"https://api.github.com/users/neonhomer/followers","following_url":"https://api.github.com/users/neonhomer/following{/other_user}","gists_url":"https://api.github.com/users/neonhomer/gists{/gist_id}","starred_url":"https://api.github.com/users/neonhomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonhomer/subscriptions","organizations_url":"https://api.github.com/users/neonhomer/orgs","repos_url":"https://api.github.com/users/neonhomer/repos","events_url":"https://api.github.com/users/neonhomer/events{/privacy}","received_events_url":"https://api.github.com/users/neonhomer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-25T18:25:10Z","updated_at":"2016-10-26T16:42:40Z","closed_at":null,"body":"* Electron version: 1.3.8\r\n* Operating systems: macOS 10.12, Windows 10\r\n\r\nIf a MenuItem is not visible the keyboard shortcut doesn't fire the Accelerator in macOS.\r\n\r\nHere's an snippet that works on Windows but not macOS:\r\n```\r\n{ label: 'Toggle Developer Tools',\r\n\tvisible: false,\r\n\taccelerator: process.platform === 'darwin' ? 'Alt+Cmd+I' : 'Ctrl+Shift+I',\r\n\tclick(item, browserWindow) {\r\n\t\tif (browserWindow) {\r\n\t\t\tbrowserWindow.webContents.toggleDevTools()\r\n\t\t}\r\n\t},\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/256407586","html_url":"https://github.com/electron/electron/issues/7737#issuecomment-256407586","issue_url":"https://api.github.com/repos/electron/electron/issues/7737","id":256407586,"user":{"login":"neonhomer","id":1554397,"avatar_url":"https://avatars.githubusercontent.com/u/1554397?v=3","gravatar_id":"","url":"https://api.github.com/users/neonhomer","html_url":"https://github.com/neonhomer","followers_url":"https://api.github.com/users/neonhomer/followers","following_url":"https://api.github.com/users/neonhomer/following{/other_user}","gists_url":"https://api.github.com/users/neonhomer/gists{/gist_id}","starred_url":"https://api.github.com/users/neonhomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonhomer/subscriptions","organizations_url":"https://api.github.com/users/neonhomer/orgs","repos_url":"https://api.github.com/users/neonhomer/repos","events_url":"https://api.github.com/users/neonhomer/events{/privacy}","received_events_url":"https://api.github.com/users/neonhomer/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T16:42:40Z","updated_at":"2016-10-26T16:42:40Z","body":"Just did a test with Electron 1.4.4 and the same results on macOS."}}
{"actor":{"display_login":"neonhomer"}}