{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/9958","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/9958/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/9958/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/9958/events","html_url":"https://github.com/ant-design/ant-design/issues/9958","id":312278588,"number":9958,"title":"After Click Button, If the focus is not lost, Enter keyboard events are bound by default.","user":{"login":"Shurlormes","id":22904862,"avatar_url":"https://avatars0.githubusercontent.com/u/22904862?v=4","gravatar_id":"","url":"https://api.github.com/users/Shurlormes","html_url":"https://github.com/Shurlormes","followers_url":"https://api.github.com/users/Shurlormes/followers","following_url":"https://api.github.com/users/Shurlormes/following{/other_user}","gists_url":"https://api.github.com/users/Shurlormes/gists{/gist_id}","starred_url":"https://api.github.com/users/Shurlormes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shurlormes/subscriptions","organizations_url":"https://api.github.com/users/Shurlormes/orgs","repos_url":"https://api.github.com/users/Shurlormes/repos","events_url":"https://api.github.com/users/Shurlormes/events{/privacy}","received_events_url":"https://api.github.com/users/Shurlormes/received_events","type":"User","site_admin":false},"labels":[{"id":778648450,"url":"https://api.github.com/repos/ant-design/ant-design/labels/Component:%20Button","name":"Component: Button","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-08T06:51:26Z","updated_at":"2018-04-08T07:04:38Z","closed_at":"2018-04-08T07:04:38Z","author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### Version\r\n3.3.3\r\n\r\n### Environment\r\nChrome\r\n\r\n### Reproduction link\r\n[https://codepen.io/Shurlormes/pen/LdXqwa](https://codepen.io/Shurlormes/pen/LdXqwa)\r\n\r\n### Steps to reproduce\r\n1. Click Button\r\n2. Press Enter Key\r\n\r\n![](https://voidforce-public.oss-cn-shanghai.aliyuncs.com/images/Ant%20Design%20Button%20Key%20Down%20Demo.png)\r\n\r\n### What is expected?\r\nButton should not default to bind keyboard events.\r\n\r\n### What is actually happening?\r\nButton defaults to keyboard events.\r\n\r\n---\r\nMaybe can add an attribute，default is false\r\n```javascript\r\n<Button bindToEnter=\"true\">Button</Button>\r\n```\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"}}
{"actor":{"display_login":"afc163"}}