"Dantman" posted a comment on MediaWiki.r98045.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98045#c27402

Commit summary for MediaWiki.r98045:

Improve the accessibility of our jump-to functionality
- Stop hiding with display: none;, this hides our jump links from modern screen 
readers and users with motor disabilities (ie: nowadays, pratically everyone 
they are intended to help).
- Instead hide with an overflow that will make the links viable <tab> targets. 
This alone is enough to help screen reader users.
- Add in a script that will show the jump-links area on-focus for motor-impared 
users who can still see who have js enabled (this can't be done with css 
unfortunately)

Dantman's comment:

You using OS X too?

Safari and Firefox are screwy on OS X. <tab> only tabs through form inputs and 
the browser chrome. ''Normally'' a browser tabs through all links.

Chrome isn't affected by this bug.
If you go to System Preferences > Keyboard and then change the "Full Keyboard 
Access: ..." radio box to "All Controls" then Firefox will also work normally.
For Safari you can use Option+Tab instead of just tab, or go into Preferences > 
Advanced and use the second "Universal Access" checkbox to swap the Option+Tab 
and Tab behaviors.

For focus/blur itself normally those don't bubble but we use jQuery's delegate 
which makes use of a few tricks to make it so that it can delegate focus and 
blur. One of the techniques I know of that it uses is to abuse the w3 standard 
event handler's 'traversing' rather than bubbling functionality. It might also 
use another trick to make it work in IE.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to