{"action":"closed","issue":{"url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/349","repository_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu","labels_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/349/comments","events_url":"https://api.github.com/repos/swisnl/jQuery-contextMenu/issues/349/events","html_url":"https://github.com/swisnl/jQuery-contextMenu/issues/349","id":132981635,"number":349,"title":"Pressing down key won't work when first item has type=html ","user":{"login":"arashdalir","id":2896170,"avatar_url":"https://avatars.githubusercontent.com/u/2896170?v=3","gravatar_id":"","url":"https://api.github.com/users/arashdalir","html_url":"https://github.com/arashdalir","followers_url":"https://api.github.com/users/arashdalir/followers","following_url":"https://api.github.com/users/arashdalir/following{/other_user}","gists_url":"https://api.github.com/users/arashdalir/gists{/gist_id}","starred_url":"https://api.github.com/users/arashdalir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arashdalir/subscriptions","organizations_url":"https://api.github.com/users/arashdalir/orgs","repos_url":"https://api.github.com/users/arashdalir/repos","events_url":"https://api.github.com/users/arashdalir/events{/privacy}","received_events_url":"https://api.github.com/users/arashdalir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T14:02:22Z","updated_at":"2016-02-14T06:49:39Z","closed_at":"2016-02-14T06:49:39Z","body":"The following context menu is not operable with only down key. If no item has focus or the items' list reaches its end, the down key should start at the beginning and set focus to the first item in the list, but it cannot. My guess is, because the first item is an HTML item (maybe I'm defining the item in a wrong manner) and the default className is not assigned to it, the key events are not triggered as expected.\r\n```\r\n$.contextMenu({\r\n\tselector: '.context_menu',\r\n\titems: {\r\n\t\t'title': {\r\n\t\t\ttype: 'html',\r\n\t\t\ticon: function (options, $itemElement, key, item)\r\n\t\t\t{\r\n\t\t\t\t$itemElement.html('<h2>Actions</h2>');\r\n\t\t\t}\r\n\t\t},\r\n\t\t'sep1': '-----------------',\r\n\t\t'details': {\r\n\t\tname: 'Details',\r\n\t\t\ticon: 'details'\r\n\t\t},\r\n\t\t'save': {\r\n\t\t\tname: 'Save',\r\n\t\t\ticon: 'save'\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n"}}