{"action":"closed","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/495","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/495/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/495/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/495","id":101152181,"number":495,"title":"Calling bind() twice","user":{"login":"gibiansky","id":1865411,"avatar_url":"https://avatars.githubusercontent.com/u/1865411?v=3","gravatar_id":"","url":"https://api.github.com/users/gibiansky","html_url":"https://github.com/gibiansky","followers_url":"https://api.github.com/users/gibiansky/followers","following_url":"https://api.github.com/users/gibiansky/following{/other_user}","gists_url":"https://api.github.com/users/gibiansky/gists{/gist_id}","starred_url":"https://api.github.com/users/gibiansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gibiansky/subscriptions","organizations_url":"https://api.github.com/users/gibiansky/orgs","repos_url":"https://api.github.com/users/gibiansky/repos","events_url":"https://api.github.com/users/gibiansky/events{/privacy}","received_events_url":"https://api.github.com/users/gibiansky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-15T08:32:24Z","updated_at":"2015-09-15T09:29:59Z","closed_at":"2015-09-15T09:29:59Z","body":"This applies to `hs.hotkey` and `hs.hotkey.modal` – what happens if you call `bind` on the same key with the same modifiers? \r\n\r\nI would have assumed that the second call overrides the first one, but I observe the opposite behaviour: the first call wins. \r\n\r\n1. Both of these are reasonable, but the behaviour (whatever it is) should be part of the contract of `bind` and should thus be documented.\r\n2. If the behaviour stays as it is, there's no way to change a binding dynamically. I think this may be a useful tool, so perhaps there should be some way to inspect the current bindings and remove them or change them..."}}