{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/6778","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/6778/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/6778/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/6778/events","html_url":"https://github.com/edx/edx-platform/pull/6778","id":55624396,"number":6778,"title":"TNL 713: Added accessibility plugin.","user":{"login":"jmclaus","id":1427382,"avatar_url":"https://avatars.githubusercontent.com/u/1427382?v=3","gravatar_id":"","url":"https://api.github.com/users/jmclaus","html_url":"https://github.com/jmclaus","followers_url":"https://api.github.com/users/jmclaus/followers","following_url":"https://api.github.com/users/jmclaus/following{/other_user}","gists_url":"https://api.github.com/users/jmclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/jmclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmclaus/subscriptions","organizations_url":"https://api.github.com/users/jmclaus/orgs","repos_url":"https://api.github.com/users/jmclaus/repos","events_url":"https://api.github.com/users/jmclaus/events{/privacy}","received_events_url":"https://api.github.com/users/jmclaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-01-27T14:31:48Z","updated_at":"2015-02-20T07:53:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/6778","html_url":"https://github.com/edx/edx-platform/pull/6778","diff_url":"https://github.com/edx/edx-platform/pull/6778.diff","patch_url":"https://github.com/edx/edx-platform/pull/6778.patch"},"body":"**Ticket:** [TNL-713](https://openedx.atlassian.net/browse/TNL-716) -- More precisely: [TNL-714](https://openedx.atlassian.net/browse/TNL-714), [TNL-715](https://openedx.atlassian.net/browse/TNL-715), [TNL-717](https://openedx.atlassian.net/browse/TNL-717), [TNL-718](https://openedx.atlassian.net/browse/TNL-718)\r\n\r\nAdds ARIA attributes to relevant elements and implement key listeners on highlighted text, viewer, and editor. Note that the creation of notes via keyboard interaction is not part of this PR and is implemented in this PR, also in review: [TNL-716](https://openedx.atlassian.net/browse/TNL-716)\r\n\r\n**Sandbox:** http://jmclaus.m.sandbox.edx.org/\r\n\r\nA small course has been created with a few notes already created. Please tab through them to see new functionality:\r\n\r\nhttp://jmclaus.m.sandbox.edx.org/courses/edX/TASN/2015/courseware/6ee20b53cc594549b3037a1448eb1eeb/b13e5d5f320c427e9206e126c1e7fb3b/\r\n\r\n\r\n**Detailed Behavior:**\r\n\r\n1. Viewer behavior \r\nTAB to a highlighted text containing a note. \r\nPressing ENTER/SPACE opens Viewer and give focus to the outline surrounding viewer window. Pressing TAB gives focus to Textarea containing the note. Pressing SHIFT+TAB gives focus to the Close button(X). \r\nOnce focused on one of these elements, tabbing then cycles forwards or backwards through the following elements: Textarea / Edit (pencil) / Delete (trashcan) / Close (X). Works also with multiple notes in the Viewer and their associated Textarea, Edit, Delete, and Close buttons. Pressing ESC at any time in the previous situations will close Viewer and give focus back to highlighted text. When Edit button has focus, pressing ENTER/SPACE will open the Editor. When Delete button has focus, pressing ENTER/SPACE will delete note and focus will revert to nothing since highlighted text was removed.  [We should decide something better than this for that behavior. Should the focus go to previous note? Or next?]. When Close button has focus, pressing ENTER/SPACE will close the viewer and give focus back to highlighted text.\r\n\r\n2. Editor behavior \r\nTAB to a highlighted text containing a note. Press ENTER/SPACE to open Viewer. Then TAB to give focus to Edit button. Then SPACE/ENTER to open Editor. Focus will be on Text area. Pressing TAB again will give focus to Save button. Pressing TAB again will give focus to Cancel button. Pressing TAB again  will give focus back to Text area. SHIFT+TAB will cycle as previously but in reverse. When Save button has focus, pressing ENTER/SPACE will save changes if any, then close the Editor, and give  focus back to highlighted text. When Cancel button has focus, pressing ENTER/SPACE will cancel changes if any, close the Editor and give focus back to highlighted text. Pressing ESC at any time in the previous situations will close Editor without saving. And pressing COMMAND/CONTROL + ENTER will close the editor but will also save any changes.\r\n\r\n\r\n**Reviewers:** @cptvitamin @clrux @explorerleslie @polesye \r\n**FYI:** @tymofij @olmar \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/75201699","html_url":"https://github.com/edx/edx-platform/pull/6778#issuecomment-75201699","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/6778","id":75201699,"user":{"login":"polesye","id":1247491,"avatar_url":"https://avatars.githubusercontent.com/u/1247491?v=3","gravatar_id":"","url":"https://api.github.com/users/polesye","html_url":"https://github.com/polesye","followers_url":"https://api.github.com/users/polesye/followers","following_url":"https://api.github.com/users/polesye/following{/other_user}","gists_url":"https://api.github.com/users/polesye/gists{/gist_id}","starred_url":"https://api.github.com/users/polesye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polesye/subscriptions","organizations_url":"https://api.github.com/users/polesye/orgs","repos_url":"https://api.github.com/users/polesye/repos","events_url":"https://api.github.com/users/polesye/events{/privacy}","received_events_url":"https://api.github.com/users/polesye/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T07:53:24Z","updated_at":"2015-02-20T07:53:24Z","body":"test this please"}}