{"action":"opened","issue":{"url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2801","repository_url":"https://api.github.com/repos/orbeon/orbeon-forms","labels_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2801/labels{/name}","comments_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2801/comments","events_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2801/events","html_url":"https://github.com/orbeon/orbeon-forms/issues/2801","id":158327653,"number":2801,"title":"No (Orbeon) focus event in ORBEON.xforms.Events.","user":{"login":"bytesnz","id":1755886,"avatar_url":"https://avatars.githubusercontent.com/u/1755886?v=3","gravatar_id":"","url":"https://api.github.com/users/bytesnz","html_url":"https://github.com/bytesnz","followers_url":"https://api.github.com/users/bytesnz/followers","following_url":"https://api.github.com/users/bytesnz/following{/other_user}","gists_url":"https://api.github.com/users/bytesnz/gists{/gist_id}","starred_url":"https://api.github.com/users/bytesnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytesnz/subscriptions","organizations_url":"https://api.github.com/users/bytesnz/orgs","repos_url":"https://api.github.com/users/bytesnz/repos","events_url":"https://api.github.com/users/bytesnz/events{/privacy}","received_events_url":"https://api.github.com/users/bytesnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T09:32:30Z","updated_at":"2016-06-03T09:32:30Z","closed_at":null,"body":"As an Orbeon forms developer, I want to be able to subscribe the the focus event, so that I can run custom javascript on control focus.\r\n\r\nThere is currently only blurEvent and clickEvent\r\n```javascript\r\n[\"_findParentXFormsControl\", \"_findAncestorFocusableControl\", \"focus\", \"blurEvent\", \"blur\", \"change\", \"_isChangingKey\", \"keydownEvent\", \"keydown\", \"keypressEvent\", \"keypress\", \"keyup\", \"_showToolTip\", \"mouseover\", \"mouseout\", \"clickEvent\", \"click\", \"_resize\", \"scrollOrResize\", \"sliderValueChange\", \"dialogClose\", \"dialogShow\", \"errorShowHideDetails\", \"errorHideAllDetails\", \"errorPanelClosed\", \"errorCloseClicked\", \"errorReloadClicked\", \"dialogMinimalBodyClick\", \"sendHeartBeatIfNeeded\", \"orbeonLoadedEvent\", \"ajaxResponseProcessedEvent\", \"errorEvent\", \"yuiCalendarCreated\"]\r\n```\r\n\r\nA focusEvent would be handy so you can handle navigation of the form using the keyboard.\r\n\r\nThe example use case is using javascript to add/remove a class to the control when it gains/loses focus (a focus class added to controls when in focus could also be a feature request in itself - useful for highlighting what control is in focus [until CSS4 comes out])."}}
{"actor":{"display_login":"bytesnz"}}