So how exactly does clicking the tab key bring a user to the next focusable item? I updated my game to work with the Gamepad API. I wanted the L1 and R1 buttons to function like shift+tab and tab events. I fired simulated keydown events that fired the tab key. I already had a listener for keydown events on certain button elements and I saw that the function actually fired for them, but it did not perform the normal tabbing/shift+tabbing action (and no, I didn't have preventDefault on).
Well I literally just wanted them to act exactly like pressing the tab/shit+tab. I wanted the browser's default behavior when those keys are pressed to run and instead the browser is detecting that they were pressed but not doing the normal actions. My current situation requires me to programmatically detect the next focusable element and shift accordingly.
Hi, can someone point me at information regarding challenges, pros/cons of single page javascript applications with respect to accessibility? We're embarking on a website redesign and wondering how the SPA experience might affect accessibility and if it is even worth it.
vs doing traditional navigation in which the page reloads
Apart from assuming the user has Javascript available (which they don't always have), you can make a SPA quite accessible, given you use proper HTML semantics, and using ARIA where this is not available.
[alexlande] The biggest issue I’ve run in to working on accessibility in SPAs is focus management when content changes. If a user searches for something, or loads a new “page”, devs often forget to set focus back on the page or otherwise notify screen reader users that something has happened
[alexlande] So you might get a new set of content without indicating it. It’s not too bad to deal with, but something to be aware of. And in my experience teams may spend a lot of time arguing about the best ways to handle focus management for those cases (i.e. do we trigger focus on the new content, or do we focus on the entire document/root so that it acts more like a full page refresh? or do we have a live region that informs the user that things have changed?)
[jhausler] thanks @cyberthread. i wonder if there are tech limitations that cause that. @mattmay, do you have any insights? I used to fire up a VM to convert docx to PDF, but my weak macbook air can’t handle it anymore :)
[jhausler] another question.. gmail and twitter show a keyboard shortcuts dialog when you press ? (shift + /). is that cool, or should another modifier be used such as alt+?