{"action":"created","issue":{"url":"https://api.github.com/repos/eBay/ebayui-core/issues/295","repository_url":"https://api.github.com/repos/eBay/ebayui-core","labels_url":"https://api.github.com/repos/eBay/ebayui-core/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/eBay/ebayui-core/issues/295/comments","events_url":"https://api.github.com/repos/eBay/ebayui-core/issues/295/events","html_url":"https://github.com/eBay/ebayui-core/issues/295","id":346290136,"node_id":"MDU6SXNzdWUzNDYyOTAxMzY=","number":295,"title":"ebay-button - handleKeydown is not sending originalEvent like handleClick","user":{"login":"RajaRamu","id":1137069,"node_id":"MDQ6VXNlcjExMzcwNjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1137069?v=4","gravatar_id":"","url":"https://api.github.com/users/RajaRamu","html_url":"https://github.com/RajaRamu","followers_url":"https://api.github.com/users/RajaRamu/followers","following_url":"https://api.github.com/users/RajaRamu/following{/other_user}","gists_url":"https://api.github.com/users/RajaRamu/gists{/gist_id}","starred_url":"https://api.github.com/users/RajaRamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RajaRamu/subscriptions","organizations_url":"https://api.github.com/users/RajaRamu/orgs","repos_url":"https://api.github.com/users/RajaRamu/repos","events_url":"https://api.github.com/users/RajaRamu/events{/privacy}","received_events_url":"https://api.github.com/users/RajaRamu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T17:40:27Z","updated_at":"2018-08-01T00:44:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"\r\n## eBayUI Version: 0.6.1\r\n\r\n## Description\r\nhandleKeyDown is handled inside the `ebay-button` and emits `button-click` event. `originalEvent` is undefined which getting passed\r\n\r\n## Workaround \r\nHere is what we should do, \r\n#1 src/common/event-utils/index.js - pass events back to callback\r\n``` function handleKeydown(keyCodes, e, callback) {\r\n    const keyCode = e.charCode || e.keyCode;\r\n    if (keyCodes.indexOf(keyCode) !== -1) {\r\n        callback(e);\r\n    }\r\n}\r\n```\r\n#2 src/components/ebay-button/index.js\r\n\r\n```\r\nfunction handleKeydown(e) {\r\n    eventUtils.handleActionKeydown(e, (e) => {\r\n        this.handleClick(e);\r\n    });\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eBay/ebayui-core/issues/comments/409412353","html_url":"https://github.com/eBay/ebayui-core/issues/295#issuecomment-409412353","issue_url":"https://api.github.com/repos/eBay/ebayui-core/issues/295","id":409412353,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQxMjM1Mw==","user":{"login":"yomed","id":3595986,"node_id":"MDQ6VXNlcjM1OTU5ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/3595986?v=4","gravatar_id":"","url":"https://api.github.com/users/yomed","html_url":"https://github.com/yomed","followers_url":"https://api.github.com/users/yomed/followers","following_url":"https://api.github.com/users/yomed/following{/other_user}","gists_url":"https://api.github.com/users/yomed/gists{/gist_id}","starred_url":"https://api.github.com/users/yomed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yomed/subscriptions","organizations_url":"https://api.github.com/users/yomed/orgs","repos_url":"https://api.github.com/users/yomed/repos","events_url":"https://api.github.com/users/yomed/events{/privacy}","received_events_url":"https://api.github.com/users/yomed/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T00:44:40Z","updated_at":"2018-08-01T00:44:40Z","author_association":"CONTRIBUTOR","body":"Thanks for the bug report. It will be fixed in `0.8.x`."}}
{"actor":{"display_login":"yomed"}}