mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #16991
[Bug 1280004] Re: Keyboard focus should only be shown if the user presses the tab key
One way to do this would be something like (in jQuery):
$(function() {
var focusfunction = function(e) {
if (e.keyCode == 9) {
$('body').addClass('showfocus');
document.removeEventListener('keydown', focusfunction);
}
}
document.addEventListener('keydown', focusfunction, true);
}
And only have focus styles applied under .showfocus (alternatively this
could be reversed so the body has a class of hidefocus by default)
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1280004
Title:
Keyboard focus should only be shown if the user presses the tab key
Status in Mahara ePortfolio:
Confirmed
Bug description:
Showing keyboard focus is great for people who use the keyboard, but it can be distracting and unnecessary for people who use the mouse. It would be nice if keyboard focus was not shown by default, but appeared when the user first pressed the tab key (and possibly other keys such as Space and Enter as well).
However, the accessibility implications of this need to be evaluated - it may be discouraged or banned in WCAG.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1280004/+subscriptions
References