{"action":"opened","issue":{"url":"https://api.github.com/repos/RobertWHurst/KeyboardJS/issues/97","labels_url":"https://api.github.com/repos/RobertWHurst/KeyboardJS/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/RobertWHurst/KeyboardJS/issues/97/comments","events_url":"https://api.github.com/repos/RobertWHurst/KeyboardJS/issues/97/events","html_url":"https://github.com/RobertWHurst/KeyboardJS/issues/97","id":101791212,"number":97,"title":"window.confirm breaks the library","user":{"login":"Akudrevatykh","id":585700,"avatar_url":"https://avatars.githubusercontent.com/u/585700?v=3","gravatar_id":"","url":"https://api.github.com/users/Akudrevatykh","html_url":"https://github.com/Akudrevatykh","followers_url":"https://api.github.com/users/Akudrevatykh/followers","following_url":"https://api.github.com/users/Akudrevatykh/following{/other_user}","gists_url":"https://api.github.com/users/Akudrevatykh/gists{/gist_id}","starred_url":"https://api.github.com/users/Akudrevatykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akudrevatykh/subscriptions","organizations_url":"https://api.github.com/users/Akudrevatykh/orgs","repos_url":"https://api.github.com/users/Akudrevatykh/repos","events_url":"https://api.github.com/users/Akudrevatykh/events{/privacy}","received_events_url":"https://api.github.com/users/Akudrevatykh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T02:20:29Z","updated_at":"2015-08-19T02:20:29Z","closed_at":null,"body":"Example:\r\n```\r\nimport keyboardJS from 'keyboardjs';\r\n\r\nkeyboardJS.bind('a', function(e) {\r\n  if(confirm('test'))\r\n    console.log('a is pressed');\r\n});\r\n```\r\nSteps to reproduce:\r\n1. Press `a`\r\n2. Press `Cancel` or hit escape\r\n3. Any keypress will trigger the callback now"}}