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: wikibugs-l@lists.wikimedia.org ReportedBy: listenle...@gmail.com CC: krinklem...@gmail.com, tpars...@wikimedia.org 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l