{"action":"closed","issue":{"url":"https://api.github.com/repos/fancyapps/fancyBox/issues/1000","repository_url":"https://api.github.com/repos/fancyapps/fancyBox","labels_url":"https://api.github.com/repos/fancyapps/fancyBox/issues/1000/labels{/name}","comments_url":"https://api.github.com/repos/fancyapps/fancyBox/issues/1000/comments","events_url":"https://api.github.com/repos/fancyapps/fancyBox/issues/1000/events","html_url":"https://github.com/fancyapps/fancyBox/issues/1000","id":58944699,"number":1000,"title":"Maintain proper focus when opened by triggered click","user":{"login":"slavafomin","id":1702725,"avatar_url":"https://avatars.githubusercontent.com/u/1702725?v=3","gravatar_id":"","url":"https://api.github.com/users/slavafomin","html_url":"https://github.com/slavafomin","followers_url":"https://api.github.com/users/slavafomin/followers","following_url":"https://api.github.com/users/slavafomin/following{/other_user}","gists_url":"https://api.github.com/users/slavafomin/gists{/gist_id}","starred_url":"https://api.github.com/users/slavafomin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavafomin/subscriptions","organizations_url":"https://api.github.com/users/slavafomin/orgs","repos_url":"https://api.github.com/users/slavafomin/repos","events_url":"https://api.github.com/users/slavafomin/events{/privacy}","received_events_url":"https://api.github.com/users/slavafomin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-02-25T18:08:22Z","updated_at":"2017-02-27T20:37:54Z","closed_at":"2017-02-27T20:37:54Z","body":"Hello!\n\nI'm triggering click event on the FancyBox link element in order to show FancyBox popup:\n\n``` javascript\n// Handling click event on the button.\n$('#some-button').click(function() {\n  // Triggering click event on the fancybox link.\n  $('#fancybox-link').click();\n});\n```\n\nWhen this happens, FancyBox is not gaining the «focus», i.e. when I press arrow buttons on the keyboard, the parent window of the website is scrolling instead of FancyBox navigating through the gallery items.\n\n---\n\nP/S: issue number #1000, I'm lucky! = )\n"}}
{"actor":{"display_login":"fancyapps"}}