w3c / wai-axsdb-web

Web Component of the Accessibility Support Database
Other
8 stars 14 forks source link

The focus can land at the end of the page view. Pressing the tab key would take users into the address bar. #51

Closed yatil closed 2 years ago

yatil commented 10 years ago

(Reported by Bim.)

evlach commented 10 years ago

@yatil I am not sure what is the issue here. For accessing the address bar user can alway use browser 's keyboard shortcut e.g. in chrome: Control + L or Alt + D. Maybe I misinterpret.. please elaborate..

yatil commented 10 years ago

The problem is that after changing a page the focus is on the end of the page rather than at the beginning where it should be. Keyboard users need then cycle around the browser GUI to get back to the beginning of the page.

I guess the issue is that the currently selected element (a button or link) is hidden, which causes the focus to be lost.

evlach commented 10 years ago

@yatil Then this change should fix that, no?

yatil commented 10 years ago

Try

$("#"+this.page+ " h1:first" ).attr('tabindex', '-1').focus();

as headings usually don’t receive focus.

evlach commented 10 years ago

good catch.. I though this was happening internally .. now seems better;) lets see user testing ...