WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Keyboard navigation using arrows only

for

From: Sean Curtis
Date: Sep 4, 2014 3:08PM


> - publicly available, reusable pattern libraries

While this would have certainly helped get us most of the way there, it wouldn't have helped with the JavaScript. Toggling the menu via display none and then setting focus on the first item required using setTimeout (yes, I know) with a delay of about 50ms. Anything less and the screen reader wouldn't read the contents of the item. I think it has something to so with the repaint of the menu. That delay might also need to change depending on the speed of the machine (how fast it repaints). I haven't tried too many slow machines, only the old (purposely) windows laptop I have for testing.

Cheers,

Sean Curtis