{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/3049","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/3049/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/3049/comments","events_url":"https://api.github.com/repos/electron/electron/issues/3049/events","html_url":"https://github.com/electron/electron/issues/3049","id":110624939,"number":3049,"title":"Click handler is not executed for top level menu items","user":{"login":"petrfelzmann","id":12231141,"avatar_url":"https://avatars.githubusercontent.com/u/12231141?v=3","gravatar_id":"","url":"https://api.github.com/users/petrfelzmann","html_url":"https://github.com/petrfelzmann","followers_url":"https://api.github.com/users/petrfelzmann/followers","following_url":"https://api.github.com/users/petrfelzmann/following{/other_user}","gists_url":"https://api.github.com/users/petrfelzmann/gists{/gist_id}","starred_url":"https://api.github.com/users/petrfelzmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrfelzmann/subscriptions","organizations_url":"https://api.github.com/users/petrfelzmann/orgs","repos_url":"https://api.github.com/users/petrfelzmann/repos","events_url":"https://api.github.com/users/petrfelzmann/events{/privacy}","received_events_url":"https://api.github.com/users/petrfelzmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/beginner","name":"beginner","color":"5319e7"},{"url":"https://api.github.com/repos/electron/electron/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/electron/electron/labels/menu","name":"menu","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-09T09:51:37Z","updated_at":"2016-06-17T10:07:37Z","closed_at":null,"body":"I create menu in render process.  But the `console.log` below is not executed for top level menu items.\r\n\r\n```javascript\r\nvar remote = require('remote'),\r\n\tMenu = remote.require('menu'),\r\n\tMenuItem = remote.require('menu-item');\r\n\t\r\nvar tmp = [{\r\n\tlabel: 'menu item',\r\n\tclick: function() {\r\n\t\tconsole.log('menu item clicked'); // not executed\r\n\t}\r\n}];\r\n\r\nvar menu = Menu.buildFromTemplate(tmp);\r\nMenu.setApplicationMenu(menu);\r\n```"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/226732078","html_url":"https://github.com/electron/electron/issues/3049#issuecomment-226732078","issue_url":"https://api.github.com/repos/electron/electron/issues/3049","id":226732078,"user":{"login":"fdelayen","id":14359114,"avatar_url":"https://avatars.githubusercontent.com/u/14359114?v=3","gravatar_id":"","url":"https://api.github.com/users/fdelayen","html_url":"https://github.com/fdelayen","followers_url":"https://api.github.com/users/fdelayen/followers","following_url":"https://api.github.com/users/fdelayen/following{/other_user}","gists_url":"https://api.github.com/users/fdelayen/gists{/gist_id}","starred_url":"https://api.github.com/users/fdelayen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdelayen/subscriptions","organizations_url":"https://api.github.com/users/fdelayen/orgs","repos_url":"https://api.github.com/users/fdelayen/repos","events_url":"https://api.github.com/users/fdelayen/events{/privacy}","received_events_url":"https://api.github.com/users/fdelayen/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T10:07:37Z","updated_at":"2016-06-17T10:07:37Z","body":"At least, that's what it's doing on Linux (and dbus is not notifying us that it's been activated, that's really strange). On windows, it doesn't create that strange submenu, but the click does not work either.\r\nAs menus are defined separately (globalmenu via dbus for X11 and another class for Windows), I'm not sure whether these bugs are related or platform-per-platform.\r\nI'm gonna debug that on Windows to see what's happening when I'll have a bit of time :stuck_out_tongue: "}}
{"actor":{"display_login":"fdelayen"}}