-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
aaron@svn.wikimedia.org wrote:
Add form accesskey (bug 14783) $form .= Xml::submitButton( wfMsgHtml('revreview-submit'),
array('id' => 'mw-submitbutton','class' => 'fr-comment-box')+$toggle);
array('id' => 'mw-submitbutton','class' => 'fr-comment-box','accesskey' => 's')+$toggle );
Where possible, avoid hardcoding accesskeys this way. Within the core software we make them localizable, so they can be changed via MediaWiki: messages, and pair them with tooltip messages.
You can fetch the appropriate accesskey and tooltip title attribute via $skin->tooltipAndAccesskey('whatever').
Note though that this function is currently dreadful, returning raw HTML fragments. I half-did some improvements on a patch to bug 14757 for cleaning this up, which it would be great if some enterprising lad finished resolving:
https://bugzilla.wikimedia.org/show_bug.cgi?id=14757
- -- brion
wikitech-l@lists.wikimedia.org