{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/885","repository_url":"https://api.github.com/repos/Hammerspoon/hammerspoon","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/885/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/885/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/885/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/885","id":151224754,"number":885,"title":"Using setFlags() with newSystemKeyEvent","user":{"login":"petobens","id":2583971,"avatar_url":"https://avatars.githubusercontent.com/u/2583971?v=3","gravatar_id":"","url":"https://api.github.com/users/petobens","html_url":"https://github.com/petobens","followers_url":"https://api.github.com/users/petobens/followers","following_url":"https://api.github.com/users/petobens/following{/other_user}","gists_url":"https://api.github.com/users/petobens/gists{/gist_id}","starred_url":"https://api.github.com/users/petobens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petobens/subscriptions","organizations_url":"https://api.github.com/users/petobens/orgs","repos_url":"https://api.github.com/users/petobens/repos","events_url":"https://api.github.com/users/petobens/events{/privacy}","received_events_url":"https://api.github.com/users/petobens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-04-26T19:56:07Z","updated_at":"2016-10-11T00:11:46Z","closed_at":null,"body":"One quick question regarding this recent [commit](https://github.com/Hammerspoon/hammerspoon/commit/a8ad4974777edc5b5db19176faf9dd2fe7b65c6f).\r\nHow can I bind `shift+cmd` to `ctrl+EJECT`? I'm doing something definitely wrong with `:setFlags()` but I don't quite get how do it properly after reading the [docs](http://www.hammerspoon.org/docs/hs.eventtap.event.html#setFlags):\r\n\r\n```lua\r\nhs.hotkey.bind({\"shift\", \"cmd\"}, \"s\", function()\r\n                hs.eventtap.event.newSystemKeyEvent('EJECT', true):setFlags({\"ctrl\", true}):post()\r\n                end)\r\n```\r\nThanks!!!"},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/252778599","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/885#issuecomment-252778599","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/885","id":252778599,"user":{"login":"asmagill","id":8139480,"avatar_url":"https://avatars.githubusercontent.com/u/8139480?v=3","gravatar_id":"","url":"https://api.github.com/users/asmagill","html_url":"https://github.com/asmagill","followers_url":"https://api.github.com/users/asmagill/followers","following_url":"https://api.github.com/users/asmagill/following{/other_user}","gists_url":"https://api.github.com/users/asmagill/gists{/gist_id}","starred_url":"https://api.github.com/users/asmagill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmagill/subscriptions","organizations_url":"https://api.github.com/users/asmagill/orgs","repos_url":"https://api.github.com/users/asmagill/repos","events_url":"https://api.github.com/users/asmagill/events{/privacy}","received_events_url":"https://api.github.com/users/asmagill/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T00:11:46Z","updated_at":"2016-10-11T00:11:46Z","body":"I don't know about the eject key yet, but I just ran some tests with the sound keys and I think that there are some additional flags being set that the current module can't set.  I am working on some additions to hs.eventtap.event that may allow getting around this and will post more in a day or so."}}
{"actor":{"display_login":"asmagill"}}