{"action":"created","comment":{"url":"https://api.github.com/repos/jquery/jquery-mobile/pulls/comments/56763324","id":56763324,"diff_hunk":"@@ -315,24 +315,40 @@ $( document ).on( \"mobileinit\", function() {\n \t\t\t\tinput = this.element.prev(\"form\").find( \"input\" );\n \n \t\t\tif ( e.which === $.ui.keyCode.DOWN ) {\n-\t\t\t\tif ( this.element.find( \"li.ui-button-active\" ).length === 0 ) {\n-\t\t\t\t\tthis.element.find( \"li:first\" ).toggleClass( \"ui-button-active\" ).find(\"a\").toggleClass( \"ui-button-active\" );\n+\t\t\t\tif ( this.element.find( \"li.ui-listview-item-active\" ).length === 0 ) {\n+\t\t\t\t\tthis.element.find( \"li:not('.ui-screen-hidden'):first\" )\n+\t\t\t\t\t.toggleClass( \"ui-listview-item-active\" )\n+\t\t\t\t\t.find(\"a\").toggleClass( \"ui-button-active\" );\n \t\t\t\t} else {\n-\t\t\t\t\tthis.element.find( \"li.ui-button-active a\" ).toggleClass( \"ui-button-active\");\n-\t\t\t\t\tthis.element.find( \"li.ui-button-active\" ).toggleClass( \"ui-button-active\" ).next().toggleClass( \"ui-button-active\" ).find(\"a\").toggleClass( \"ui-button-active\" );\n+\t\t\t\t\tthis.element.find( \"li.ui-listview-item-active a\" )\n+\t\t\t\t\t.toggleClass( \"ui-button-active\");\n+\n+\t\t\t\t\tthis.element.find( \"li.ui-listview-item-active\" )\n+\t\t\t\t\t.toggleClass( \"ui-listview-item-active\" )\n+\t\t\t\t\t.nextAll(\"li:not('.ui-screen-hidden'):first\")\n+\t\t\t\t\t.toggleClass( \"ui-listview-item-active\" )\n+\t\t\t\t\t.find(\"a\").toggleClass( \"ui-button-active\" );\n \t\t\t\t}\n-\n-\t\t\t\tthis.highlightDown();\n \t\t\t} else if ( e.which === $.ui.keyCode.UP ) {\n-\t\t\t\tif ( this.element.find( \"li.ui-button-active\" ).length !== 0 ) {\n-\t\t\t\t\tthis.element.find( \"li.ui-button-active a\" ).toggleClass( \"ui-button-active\");\n-\t\t\t\t\tthis.element.find( \"li.ui-button-active\" ).toggleClass( \"ui-button-active\" ).prev().toggleClass( \"ui-button-active\" ).find(\"a\").toggleClass( \"ui-button-active\" );\n+\t\t\t\tif ( this.element.find( \"li.ui-listview-item-active\" ).length !== 0 ) {\n+\t\t\t\t\tthis.element.find( \"li.ui-listview-item-active a\" )\n+\t\t\t\t\t.toggleClass( \"ui-button-active\");\n+\n+\t\t\t\t\tthis.element.find( \"li.ui-listview-item-active\" )\n+\t\t\t\t\t.toggleClass( \"ui-listview-item-active\" )\n+\t\t\t\t\t.prevAll(\"li:not('.ui-screen-hidden'):first\")\n+\t\t\t\t\t.toggleClass( \"ui-listview-item-active\" )\n+\t\t\t\t\t.find(\"a\").toggleClass( \"ui-button-active\" );\n \t\t\t\t} else {\n-\t\t\t\t\tthis.element.find( \"li:last\" ).toggleClass( \"ui-button-active\" ).find(\"a\").toggleClass( \"ui-button-active\" );\n+\t\t\t\t\tthis.element.find( \"li:not('.ui-screen-hidden'):last\" )\n+\t\t\t\t\t.toggleClass( \"ui-listview-item-active\" )\n+\t\t\t\t\t.find(\"a\").toggleClass( \"ui-button-active\" );\n \t\t\t\t}\n-\t\t\t\tthis.highlightUp();\n-\t\t\t} else if ( typeof e.which !== \"undefined\" ) {\n-\t\t\t\tthis.element.find( \"li.ui-button-active\" ).removeClass( \"ui-button-active\" );\n+\t\t\t} else if ( e.which === $.ui.keyCode.ENTER ) {\n+\t\t\t\tthis.submitHandler();\n+\t\t\t}else if ( typeof e.which !== \"undefined\" ) {","path":"demos/_assets/js/jqm-demos.js","position":null,"original_position":48,"commit_id":"e4bb2c5ee2abf9dc5d0ab0a815c82bfb65941b2e","original_commit_id":"4e6f8198e93af3ded377066718c1081c4012475a","user":{"login":"apsdehal","id":3616806,"avatar_url":"https://avatars.githubusercontent.com/u/3616806?v=3","gravatar_id":"","url":"https://api.github.com/users/apsdehal","html_url":"https://github.com/apsdehal","followers_url":"https://api.github.com/users/apsdehal/followers","following_url":"https://api.github.com/users/apsdehal/following{/other_user}","gists_url":"https://api.github.com/users/apsdehal/gists{/gist_id}","starred_url":"https://api.github.com/users/apsdehal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsdehal/subscriptions","organizations_url":"https://api.github.com/users/apsdehal/orgs","repos_url":"https://api.github.com/users/apsdehal/repos","events_url":"https://api.github.com/users/apsdehal/events{/privacy}","received_events_url":"https://api.github.com/users/apsdehal/received_events","type":"User","site_admin":false},"body":"Not sure, it was here before.","created_at":"2016-03-20T12:13:08Z","updated_at":"2016-03-20T12:13:08Z","html_url":"https://github.com/jquery/jquery-mobile/pull/8406#discussion_r56763324","pull_request_url":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406","_links":{"self":{"href":"https://api.github.com/repos/jquery/jquery-mobile/pulls/comments/56763324"},"html":{"href":"https://github.com/jquery/jquery-mobile/pull/8406#discussion_r56763324"},"pull_request":{"href":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406"}}},"pull_request":{"url":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406","id":63474005,"html_url":"https://github.com/jquery/jquery-mobile/pull/8406","diff_url":"https://github.com/jquery/jquery-mobile/pull/8406.diff","patch_url":"https://github.com/jquery/jquery-mobile/pull/8406.patch","issue_url":"https://api.github.com/repos/jquery/jquery-mobile/issues/8406","number":8406,"state":"open","locked":false,"title":"Demos: Fix search navigation through keyboard","user":{"login":"apsdehal","id":3616806,"avatar_url":"https://avatars.githubusercontent.com/u/3616806?v=3","gravatar_id":"","url":"https://api.github.com/users/apsdehal","html_url":"https://github.com/apsdehal","followers_url":"https://api.github.com/users/apsdehal/followers","following_url":"https://api.github.com/users/apsdehal/following{/other_user}","gists_url":"https://api.github.com/users/apsdehal/gists{/gist_id}","starred_url":"https://api.github.com/users/apsdehal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsdehal/subscriptions","organizations_url":"https://api.github.com/users/apsdehal/orgs","repos_url":"https://api.github.com/users/apsdehal/repos","events_url":"https://api.github.com/users/apsdehal/events{/privacy}","received_events_url":"https://api.github.com/users/apsdehal/received_events","type":"User","site_admin":false},"body":"As for a reason why `nextAll/prevAll` is used against `next/prev`, follow this [link](http://stackoverflow.com/questions/8359746/jquery-next-with-not-selector-not-working-as-expected)\r\nFixes #8405\r\nRefs #8245","created_at":"2016-03-19T17:52:15Z","updated_at":"2016-03-20T12:13:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd9a74db8a2009893a83f518cc3c8b4293cd009a","assignee":{"login":"apsdehal","id":3616806,"avatar_url":"https://avatars.githubusercontent.com/u/3616806?v=3","gravatar_id":"","url":"https://api.github.com/users/apsdehal","html_url":"https://github.com/apsdehal","followers_url":"https://api.github.com/users/apsdehal/followers","following_url":"https://api.github.com/users/apsdehal/following{/other_user}","gists_url":"https://api.github.com/users/apsdehal/gists{/gist_id}","starred_url":"https://api.github.com/users/apsdehal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsdehal/subscriptions","organizations_url":"https://api.github.com/users/apsdehal/orgs","repos_url":"https://api.github.com/users/apsdehal/repos","events_url":"https://api.github.com/users/apsdehal/events{/privacy}","received_events_url":"https://api.github.com/users/apsdehal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jquery/jquery-mobile/milestones/24","html_url":"https://github.com/jquery/jquery-mobile/milestones/1.5.0","labels_url":"https://api.github.com/repos/jquery/jquery-mobile/milestones/24/labels","id":265123,"number":24,"title":"1.5.0","description":"","creator":{"login":"jaspermdegroot","id":1296793,"avatar_url":"https://avatars.githubusercontent.com/u/1296793?v=3","gravatar_id":"","url":"https://api.github.com/users/jaspermdegroot","html_url":"https://github.com/jaspermdegroot","followers_url":"https://api.github.com/users/jaspermdegroot/followers","following_url":"https://api.github.com/users/jaspermdegroot/following{/other_user}","gists_url":"https://api.github.com/users/jaspermdegroot/gists{/gist_id}","starred_url":"https://api.github.com/users/jaspermdegroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaspermdegroot/subscriptions","organizations_url":"https://api.github.com/users/jaspermdegroot/orgs","repos_url":"https://api.github.com/users/jaspermdegroot/repos","events_url":"https://api.github.com/users/jaspermdegroot/events{/privacy}","received_events_url":"https://api.github.com/users/jaspermdegroot/received_events","type":"User","site_admin":false},"open_issues":67,"closed_issues":297,"state":"open","created_at":"2013-02-12T09:05:39Z","updated_at":"2016-03-20T11:42:54Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406/commits","review_comments_url":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406/comments","review_comment_url":"https://api.github.com/repos/jquery/jquery-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jquery/jquery-mobile/issues/8406/comments","statuses_url":"https://api.github.com/repos/jquery/jquery-mobile/statuses/e4bb2c5ee2abf9dc5d0ab0a815c82bfb65941b2e","head":{"label":"apsdehal:iss-8405","ref":"iss-8405","sha":"e4bb2c5ee2abf9dc5d0ab0a815c82bfb65941b2e","user":{"login":"apsdehal","id":3616806,"avatar_url":"https://avatars.githubusercontent.com/u/3616806?v=3","gravatar_id":"","url":"https://api.github.com/users/apsdehal","html_url":"https://github.com/apsdehal","followers_url":"https://api.github.com/users/apsdehal/followers","following_url":"https://api.github.com/users/apsdehal/following{/other_user}","gists_url":"https://api.github.com/users/apsdehal/gists{/gist_id}","starred_url":"https://api.github.com/users/apsdehal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsdehal/subscriptions","organizations_url":"https://api.github.com/users/apsdehal/orgs","repos_url":"https://api.github.com/users/apsdehal/repos","events_url":"https://api.github.com/users/apsdehal/events{/privacy}","received_events_url":"https://api.github.com/users/apsdehal/received_events","type":"User","site_admin":false},"repo":{"id":31622135,"name":"jquery-mobile","full_name":"apsdehal/jquery-mobile","owner":{"login":"apsdehal","id":3616806,"avatar_url":"https://avatars.githubusercontent.com/u/3616806?v=3","gravatar_id":"","url":"https://api.github.com/users/apsdehal","html_url":"https://github.com/apsdehal","followers_url":"https://api.github.com/users/apsdehal/followers","following_url":"https://api.github.com/users/apsdehal/following{/other_user}","gists_url":"https://api.github.com/users/apsdehal/gists{/gist_id}","starred_url":"https://api.github.com/users/apsdehal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsdehal/subscriptions","organizations_url":"https://api.github.com/users/apsdehal/orgs","repos_url":"https://api.github.com/users/apsdehal/repos","events_url":"https://api.github.com/users/apsdehal/events{/privacy}","received_events_url":"https://api.github.com/users/apsdehal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apsdehal/jquery-mobile","description":"jQuery Mobile Framework","fork":true,"url":"https://api.github.com/repos/apsdehal/jquery-mobile","forks_url":"https://api.github.com/repos/apsdehal/jquery-mobile/forks","keys_url":"https://api.github.com/repos/apsdehal/jquery-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apsdehal/jquery-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apsdehal/jquery-mobile/teams","hooks_url":"https://api.github.com/repos/apsdehal/jquery-mobile/hooks","issue_events_url":"https://api.github.com/repos/apsdehal/jquery-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/apsdehal/jquery-mobile/events","assignees_url":"https://api.github.com/repos/apsdehal/jquery-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/apsdehal/jquery-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/apsdehal/jquery-mobile/tags","blobs_url":"https://api.github.com/repos/apsdehal/jquery-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apsdehal/jquery-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apsdehal/jquery-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/apsdehal/jquery-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apsdehal/jquery-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/apsdehal/jquery-mobile/languages","stargazers_url":"https://api.github.com/repos/apsdehal/jquery-mobile/stargazers","contributors_url":"https://api.github.com/repos/apsdehal/jquery-mobile/contributors","subscribers_url":"https://api.github.com/repos/apsdehal/jquery-mobile/subscribers","subscription_url":"https://api.github.com/repos/apsdehal/jquery-mobile/subscription","commits_url":"https://api.github.com/repos/apsdehal/jquery-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/apsdehal/jquery-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/apsdehal/jquery-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/apsdehal/jquery-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/apsdehal/jquery-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/apsdehal/jquery-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apsdehal/jquery-mobile/merges","archive_url":"https://api.github.com/repos/apsdehal/jquery-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apsdehal/jquery-mobile/downloads","issues_url":"https://api.github.com/repos/apsdehal/jquery-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/apsdehal/jquery-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/apsdehal/jquery-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/apsdehal/jquery-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apsdehal/jquery-mobile/labels{/name}","releases_url":"https://api.github.com/repos/apsdehal/jquery-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/apsdehal/jquery-mobile/deployments","created_at":"2015-03-03T21:24:41Z","updated_at":"2015-03-03T21:24:45Z","pushed_at":"2016-03-20T12:11:40Z","git_url":"git://github.com/apsdehal/jquery-mobile.git","ssh_url":"git@github.com:apsdehal/jquery-mobile.git","clone_url":"https://github.com/apsdehal/jquery-mobile.git","svn_url":"https://github.com/apsdehal/jquery-mobile","homepage":"http://jquerymobile.com/","size":132958,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jquery:1.5-demos-issues","ref":"1.5-demos-issues","sha":"e8393593caa98d0f806d339a7725d2ca88228f9e","user":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"repo":{"id":907410,"name":"jquery-mobile","full_name":"jquery/jquery-mobile","owner":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jquery/jquery-mobile","description":"jQuery Mobile Framework","fork":false,"url":"https://api.github.com/repos/jquery/jquery-mobile","forks_url":"https://api.github.com/repos/jquery/jquery-mobile/forks","keys_url":"https://api.github.com/repos/jquery/jquery-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jquery/jquery-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jquery/jquery-mobile/teams","hooks_url":"https://api.github.com/repos/jquery/jquery-mobile/hooks","issue_events_url":"https://api.github.com/repos/jquery/jquery-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/jquery/jquery-mobile/events","assignees_url":"https://api.github.com/repos/jquery/jquery-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/jquery/jquery-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/jquery/jquery-mobile/tags","blobs_url":"https://api.github.com/repos/jquery/jquery-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jquery/jquery-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jquery/jquery-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/jquery/jquery-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jquery/jquery-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/jquery/jquery-mobile/languages","stargazers_url":"https://api.github.com/repos/jquery/jquery-mobile/stargazers","contributors_url":"https://api.github.com/repos/jquery/jquery-mobile/contributors","subscribers_url":"https://api.github.com/repos/jquery/jquery-mobile/subscribers","subscription_url":"https://api.github.com/repos/jquery/jquery-mobile/subscription","commits_url":"https://api.github.com/repos/jquery/jquery-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/jquery/jquery-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/jquery/jquery-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/jquery/jquery-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/jquery/jquery-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/jquery/jquery-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jquery/jquery-mobile/merges","archive_url":"https://api.github.com/repos/jquery/jquery-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jquery/jquery-mobile/downloads","issues_url":"https://api.github.com/repos/jquery/jquery-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/jquery/jquery-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/jquery/jquery-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/jquery/jquery-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jquery/jquery-mobile/labels{/name}","releases_url":"https://api.github.com/repos/jquery/jquery-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/jquery/jquery-mobile/deployments","created_at":"2010-09-13T15:02:22Z","updated_at":"2016-03-19T21:04:06Z","pushed_at":"2016-03-20T12:11:41Z","git_url":"git://github.com/jquery/jquery-mobile.git","ssh_url":"git@github.com:jquery/jquery-mobile.git","clone_url":"https://github.com/jquery/jquery-mobile.git","svn_url":"https://github.com/jquery/jquery-mobile","homepage":"https://jquerymobile.com/","size":146670,"stargazers_count":9833,"watchers_count":9833,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2642,"mirror_url":null,"open_issues_count":320,"forks":2642,"open_issues":320,"watchers":9833,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406"},"html":{"href":"https://github.com/jquery/jquery-mobile/pull/8406"},"issue":{"href":"https://api.github.com/repos/jquery/jquery-mobile/issues/8406"},"comments":{"href":"https://api.github.com/repos/jquery/jquery-mobile/issues/8406/comments"},"review_comments":{"href":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406/comments"},"review_comment":{"href":"https://api.github.com/repos/jquery/jquery-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jquery/jquery-mobile/pulls/8406/commits"},"statuses":{"href":"https://api.github.com/repos/jquery/jquery-mobile/statuses/e4bb2c5ee2abf9dc5d0ab0a815c82bfb65941b2e"}}}}