{"action":"created","issue":{"url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/issues/9","labels_url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/issues/9/comments","events_url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/issues/9/events","html_url":"https://github.com/mattlewis92/angular-bootstrap-confirm/pull/9","id":108037065,"number":9,"title":"Confirm dialog keyboard support","user":{"login":"andreptb","id":2106204,"avatar_url":"https://avatars.githubusercontent.com/u/2106204?v=3","gravatar_id":"","url":"https://api.github.com/users/andreptb","html_url":"https://github.com/andreptb","followers_url":"https://api.github.com/users/andreptb/followers","following_url":"https://api.github.com/users/andreptb/following{/other_user}","gists_url":"https://api.github.com/users/andreptb/gists{/gist_id}","starred_url":"https://api.github.com/users/andreptb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreptb/subscriptions","organizations_url":"https://api.github.com/users/andreptb/orgs","repos_url":"https://api.github.com/users/andreptb/repos","events_url":"https://api.github.com/users/andreptb/events{/privacy}","received_events_url":"https://api.github.com/users/andreptb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-24T01:09:46Z","updated_at":"2015-09-27T19:57:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/pulls/9","html_url":"https://github.com/mattlewis92/angular-bootstrap-confirm/pull/9","diff_url":"https://github.com/mattlewis92/angular-bootstrap-confirm/pull/9.diff","patch_url":"https://github.com/mattlewis92/angular-bootstrap-confirm/pull/9.patch"},"body":"Hi @mattlewis92,\r\n\r\nGreat work on this plugin! However, I couldn't find a way to use the keyboard to press the buttons on the dialog in an easy way. I want to press enter on a button and when the confirm dialog shows up, I want to press enter again to confirm it. \r\n\r\nIn this pull request I make this work by applying focus to the first button after the popup is shown. To cancel you can go to the next button by pressing tab and then press enter.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/issues/comments/143590753","html_url":"https://github.com/mattlewis92/angular-bootstrap-confirm/pull/9#issuecomment-143590753","issue_url":"https://api.github.com/repos/mattlewis92/angular-bootstrap-confirm/issues/9","id":143590753,"user":{"login":"andreptb","id":2106204,"avatar_url":"https://avatars.githubusercontent.com/u/2106204?v=3","gravatar_id":"","url":"https://api.github.com/users/andreptb","html_url":"https://github.com/andreptb","followers_url":"https://api.github.com/users/andreptb/followers","following_url":"https://api.github.com/users/andreptb/following{/other_user}","gists_url":"https://api.github.com/users/andreptb/gists{/gist_id}","starred_url":"https://api.github.com/users/andreptb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreptb/subscriptions","organizations_url":"https://api.github.com/users/andreptb/orgs","repos_url":"https://api.github.com/users/andreptb/repos","events_url":"https://api.github.com/users/andreptb/events{/privacy}","received_events_url":"https://api.github.com/users/andreptb/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T19:57:20Z","updated_at":"2015-09-27T19:57:20Z","body":"@mattlewis92,\r\n\r\nCreated a new commit with the following:\r\n\r\n- All unit tests are [passing](https://travis-ci.org/mattlewis92/angular-bootstrap-confirm/builds/82452865).\r\n- Additional tests, had a hard time to make it work with [phantomjs limitations](https://github.com/ariya/phantomjs/issues/10427).\r\n- **handle-focus** option to allow toggling this functionality. It's enabled by default, I believe confirming with the keyboard is a very desirable feature.\r\n\r\n"}}