{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom-keymap/issues/79","labels_url":"https://api.github.com/repos/atom/atom-keymap/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom-keymap/issues/79/comments","events_url":"https://api.github.com/repos/atom/atom-keymap/issues/79/events","html_url":"https://github.com/atom/atom-keymap/issues/79","id":75257459,"number":79,"title":"Unsetting a key doesn't appear to work with complex selector","user":{"login":"lee-dohm","id":1038121,"avatar_url":"https://avatars.githubusercontent.com/u/1038121?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-dohm","html_url":"https://github.com/lee-dohm","followers_url":"https://api.github.com/users/lee-dohm/followers","following_url":"https://api.github.com/users/lee-dohm/following{/other_user}","gists_url":"https://api.github.com/users/lee-dohm/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-dohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-dohm/subscriptions","organizations_url":"https://api.github.com/users/lee-dohm/orgs","repos_url":"https://api.github.com/users/lee-dohm/repos","events_url":"https://api.github.com/users/lee-dohm/events{/privacy}","received_events_url":"https://api.github.com/users/lee-dohm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom-keymap/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-11T15:22:19Z","updated_at":"2015-05-16T00:56:14Z","closed_at":null,"body":"Ref: atom/markdown-preview#114\r\n\r\nI was experimenting with my keybindings to unmap the default Markdown Preview key:\r\n\r\n```coffee\r\n'atom-workspace, atom-workspace atom-text-editor':\r\n  'ctrl-shift-M': 'markdown-preview:toggle'\r\n```\r\n\r\nand set a new, grammar-scoped key:\r\n\r\n```coffee\r\n'atom-text-editor[data-grammar=\"source gfm\"]':\r\n  'ctrl-shift-M': 'markdown-preview:toggle'\r\n```\r\n\r\nSo I added the following to my `keymap.cson`:\r\n\r\n```coffee\r\n'atom-workspace, atom-workspace atom-text-editor':\r\n  'ctrl-shift-M': 'unset!'\r\n'atom-text-editor[data-grammar=\"source gfm\"]':\r\n  'ctrl-shift-m': 'markdown-preview:toggle'\r\n```\r\n\r\nwhich, in theory, should make it so that <kbd>Ctrl+Shift+M</kbd> should only activate the Markdown Preview when a GFM text editor is focused. But if I do the following:\r\n\r\n1. With the keymap modification above active, open a Markdown file\r\n1. Focus the tree view\r\n1. Press <kbd>Ctrl+Shift+M</kbd>\r\n\r\n**Expected:** Markdown Preview is **not** displayed\r\n**Actual:** Markdown Preview **is** displayed\r\n\r\nHere's what I see in the Keybinding Resolver:\r\n\r\n![screen shot 2015-05-11 at 8 21 40 am](https://cloud.githubusercontent.com/assets/1038121/7568306/d4e8aa58-f7b6-11e4-8402-5336c32838a0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom-keymap/issues/comments/102555688","html_url":"https://github.com/atom/atom-keymap/issues/79#issuecomment-102555688","issue_url":"https://api.github.com/repos/atom/atom-keymap/issues/79","id":102555688,"user":{"login":"lee-dohm","id":1038121,"avatar_url":"https://avatars.githubusercontent.com/u/1038121?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-dohm","html_url":"https://github.com/lee-dohm","followers_url":"https://api.github.com/users/lee-dohm/followers","following_url":"https://api.github.com/users/lee-dohm/following{/other_user}","gists_url":"https://api.github.com/users/lee-dohm/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-dohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-dohm/subscriptions","organizations_url":"https://api.github.com/users/lee-dohm/orgs","repos_url":"https://api.github.com/users/lee-dohm/repos","events_url":"https://api.github.com/users/lee-dohm/events{/privacy}","received_events_url":"https://api.github.com/users/lee-dohm/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T00:56:14Z","updated_at":"2015-05-16T00:56:14Z","body":"A workaround is documented on the Discuss topic listed above."}}