https://bugzilla.wikimedia.org/show_bug.cgi?id=37239
Web browser: ---
Bug #: 37239
Summary: Use accessKeyLabel property when available
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: JavaScript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
mw.util uses much code and browser sniffing to display the access key in the
tooltip. With HTML5 there is a property to simplify this, see [1].
Using it when available has the advantage that you don't have to figure out the
correct prefix yourself, additionally it will be localized.
In Firefox 10 it works as expected:
>>> $('#n-mainpage-description a').prop('accessKeyLabel')
"Alt+Umschalt+z"
The only drawback is that you still must provide a fallback for browsers not
supporting this (including IE 9).
[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#dfnReturnLink-0
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l