{"action":"created","issue":{"url":"https://api.github.com/repos/layerssss/paste.js/issues/15","labels_url":"https://api.github.com/repos/layerssss/paste.js/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/layerssss/paste.js/issues/15/comments","events_url":"https://api.github.com/repos/layerssss/paste.js/issues/15/events","html_url":"https://github.com/layerssss/paste.js/pull/15","id":105232575,"number":15,"title":"Make hidden contenteditable also hidden for screenreaders","user":{"login":"jmuheim","id":1814983,"avatar_url":"https://avatars.githubusercontent.com/u/1814983?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuheim","html_url":"https://github.com/jmuheim","followers_url":"https://api.github.com/users/jmuheim/followers","following_url":"https://api.github.com/users/jmuheim/following{/other_user}","gists_url":"https://api.github.com/users/jmuheim/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuheim/subscriptions","organizations_url":"https://api.github.com/users/jmuheim/orgs","repos_url":"https://api.github.com/users/jmuheim/repos","events_url":"https://api.github.com/users/jmuheim/events{/privacy}","received_events_url":"https://api.github.com/users/jmuheim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T15:09:27Z","updated_at":"2015-09-08T01:02:59Z","closed_at":"2015-09-08T00:57:53Z","pull_request":{"url":"https://api.github.com/repos/layerssss/paste.js/pulls/15","html_url":"https://github.com/layerssss/paste.js/pull/15","diff_url":"https://github.com/layerssss/paste.js/pull/15.diff","patch_url":"https://github.com/layerssss/paste.js/pull/15.patch"},"body":"I added `tabindex=\"-1\"` and `aria-hidden=\"true\"` to make screenreaders ignore the hidden `contenteditable`.\r\n\r\nOutput before (in \"browse mode\"): `blank.`\r\nOutput before (in \"focus mode\"): `section editable. blank.`\r\n\r\nBoth outputs are gone with the 2 attributes above.\r\n\r\nTested with [NVDA screenreader](http://www.nvaccess.org/).\r\n\r\nStill, there is a nasty output after pasting a screenshot: `section editable. blank.` I guess it's because the element receives focus by JavaScript when pasting. I tried adding `.attr 'aria-label', 'screenshot pasted'` but the result isn't much better: `screenshot pasted. section editable. blank.`. Maybe there is a way to \"do the magic stuff\" without setting the focus on the `contenteditable` div?\r\n\r\nAnyways, great work, very useful! :+1: "},"comment":{"url":"https://api.github.com/repos/layerssss/paste.js/issues/comments/138400298","html_url":"https://github.com/layerssss/paste.js/pull/15#issuecomment-138400298","issue_url":"https://api.github.com/repos/layerssss/paste.js/issues/15","id":138400298,"user":{"login":"layerssss","id":1559832,"avatar_url":"https://avatars.githubusercontent.com/u/1559832?v=3","gravatar_id":"","url":"https://api.github.com/users/layerssss","html_url":"https://github.com/layerssss","followers_url":"https://api.github.com/users/layerssss/followers","following_url":"https://api.github.com/users/layerssss/following{/other_user}","gists_url":"https://api.github.com/users/layerssss/gists{/gist_id}","starred_url":"https://api.github.com/users/layerssss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerssss/subscriptions","organizations_url":"https://api.github.com/users/layerssss/orgs","repos_url":"https://api.github.com/users/layerssss/repos","events_url":"https://api.github.com/users/layerssss/events{/privacy}","received_events_url":"https://api.github.com/users/layerssss/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T01:02:59Z","updated_at":"2015-09-08T01:02:59Z","body":"@jmuheim thanks!   there is no way to do without setting the focus on `[contenteditable]` since some hack are based on it, but we can try to exit the focus status (previous focused element or no focus at all) after we got the image data, i ll try it :+1: "}}