{"action":"created","issue":{"url":"https://api.github.com/repos/chrisui/react-hotkeys/issues/48","repository_url":"https://api.github.com/repos/chrisui/react-hotkeys","labels_url":"https://api.github.com/repos/chrisui/react-hotkeys/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/chrisui/react-hotkeys/issues/48/comments","events_url":"https://api.github.com/repos/chrisui/react-hotkeys/issues/48/events","html_url":"https://github.com/chrisui/react-hotkeys/issues/48","id":188383952,"number":48,"title":"Expose customHotKeys","user":{"login":"framerate","id":74291,"avatar_url":"https://avatars.githubusercontent.com/u/74291?v=3","gravatar_id":"","url":"https://api.github.com/users/framerate","html_url":"https://github.com/framerate","followers_url":"https://api.github.com/users/framerate/followers","following_url":"https://api.github.com/users/framerate/following{/other_user}","gists_url":"https://api.github.com/users/framerate/gists{/gist_id}","starred_url":"https://api.github.com/users/framerate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framerate/subscriptions","organizations_url":"https://api.github.com/users/framerate/orgs","repos_url":"https://api.github.com/users/framerate/repos","events_url":"https://api.github.com/users/framerate/events{/privacy}","received_events_url":"https://api.github.com/users/framerate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-09T23:55:56Z","updated_at":"2016-11-29T19:30:37Z","closed_at":null,"body":"I'm using this library on a smart TV platform and some of the keycodes don't seem to exist in Mousetrap. Mousetrap has support for this but it's not exposed to react-hotkeys\r\n\r\nWhat I tried to do:\r\n\r\nAdd a customKeyCodes prop\r\n```\r\npropTypes: {\r\n    children: React.PropTypes.node,\r\n    onFocus: React.PropTypes.func,\r\n    onBlur: React.PropTypes.func,\r\n    keyMap: React.PropTypes.object,\r\n    handlers: React.PropTypes.object,\r\n    focused: React.PropTypes.bool, // externally controlled focus\r\n    attach: React.PropTypes.any, // dom element to listen for key events,\r\n    customKeyCodes: React.ProptTypes.array // custom keycodes in the format {123, 'banana', 456, foobar}\r\n  },\r\n```\r\n\r\nand this inside componentDidMount():\r\n```\r\n// add custom keycodes to Mousetrap\r\n    if (this.props.customKeyCodes) {\r\n      this.__mousetrap__.addKeycodes(this.props.customKeyCodes);\r\n    }\r\n```\r\n\r\nHOWEVER it seems you're doing some clever abstractions. If you're available to point me in the right direction, I'd like to make this work!"},"comment":{"url":"https://api.github.com/repos/chrisui/react-hotkeys/issues/comments/263673118","html_url":"https://github.com/chrisui/react-hotkeys/issues/48#issuecomment-263673118","issue_url":"https://api.github.com/repos/chrisui/react-hotkeys/issues/48","id":263673118,"user":{"login":"chrisui","id":1042432,"avatar_url":"https://avatars.githubusercontent.com/u/1042432?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisui","html_url":"https://github.com/chrisui","followers_url":"https://api.github.com/users/chrisui/followers","following_url":"https://api.github.com/users/chrisui/following{/other_user}","gists_url":"https://api.github.com/users/chrisui/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisui/subscriptions","organizations_url":"https://api.github.com/users/chrisui/orgs","repos_url":"https://api.github.com/users/chrisui/repos","events_url":"https://api.github.com/users/chrisui/events{/privacy}","received_events_url":"https://api.github.com/users/chrisui/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T19:30:37Z","updated_at":"2016-11-29T19:30:37Z","body":"Whoops click happy"}}
{"actor":{"display_login":"chrisui"}}