Adding accesskey="s" to forms in the following special pages:
authorJon Harald Søby <jhsoby@users.mediawiki.org>
Wed, 30 Jul 2008 23:41:02 +0000 (23:41 +0000)
committerJon Harald Søby <jhsoby@users.mediawiki.org>
Wed, 30 Jul 2008 23:41:02 +0000 (23:41 +0000)
* Special:BlockIP
* Special:EmailUser
* Special:ExpandTemplates
* Special:Export
* Special:Import
* Special:ParserDiffTest
* Special:UserRights

includes/specials/SpecialBlockip.php
includes/specials/SpecialEmailuser.php
includes/specials/SpecialExport.php
includes/specials/SpecialImport.php
includes/specials/SpecialUserrights.php

index 52829d9..56cf9c6 100644 (file)
@@ -246,7 +246,7 @@ class IPBlockForm {
                                <td style='padding-top: 1em'>&nbsp;</td>
                                <td  class='mw-submit' style='padding-top: 1em'>" .
                                        Xml::submitButton( wfMsg( 'ipbsubmit' ),
-                                               array( 'name' => 'wpBlock', 'tabindex' => '12' ) ) . "
+                                               array( 'name' => 'wpBlock', 'tabindex' => '12', 'accesskey' => 's' ) ) . "
                                </td>
                        </tr>" .
                        Xml::closeElement( 'table' ) .
index 3874c6a..d557c84 100644 (file)
@@ -130,7 +130,7 @@ class EmailUserForm {
 <textarea id=\"wpText\" name=\"wpText\" rows='20' cols='80' style=\"width: 100%;\">" . htmlspecialchars( $this->text ) .
 "</textarea>
 " . wfCheckLabel( $emc, 'wpCCMe', 'wpCCMe', $wgUser->getBoolOption( 'ccmeonemails' ) ) . "<br />
-<input type='submit' name=\"wpSend\" value=\"{$ems}\" />
+<input type='submit' name=\"wpSend\" value=\"{$ems}\" accesskey=\"s\" />
 <input type='hidden' name='wpEditToken' value=\"$token\" />
 </form>\n" );
 
index 38bfc83..d500785 100644 (file)
@@ -278,7 +278,7 @@ function wfSpecialExport( $page = '' ) {
        //$form .= Xml::checkLabel( wfMsg( 'export-images' ), 'images', 'wpExportImages', false ) . '<br />';
        $form .= Xml::checkLabel( wfMsg( 'export-download' ), 'wpDownload', 'wpDownload', true ) . '<br />';
 
-       $form .= Xml::submitButton( wfMsg( 'export-submit' ) );
+       $form .= Xml::submitButton( wfMsg( 'export-submit' ), array( 'accesskey' => 's' ) );
        $form .= Xml::closeElement( 'form' );
        $wgOut->addHtml( $form );
 }
index 4c37f1f..83d4d40 100644 (file)
@@ -159,7 +159,7 @@ function wfSpecialImport( $page = '' ) {
                                <td>
                                </td>
                                <td>" .
-                                       Xml::submitButton( wfMsg( 'import-interwiki-submit' ) ) .
+                                       Xml::submitButton( wfMsg( 'import-interwiki-submit' ), array( 'accesskey' = 's' ) ) .
                                "</td>
                        </tr>" .
                        Xml::closeElement( 'table' ).
index fd3c690..4ce3e06 100644 (file)
@@ -384,7 +384,7 @@ class UserrightsPage extends SpecialPage {
                                <tr>
                                        <td></td>
                                        <td class='mw-submit'>" .
-                                               Xml::submitButton( wfMsg( 'saveusergroups' ), array( 'name' => 'saveusergroups' ) ) .
+                                               Xml::submitButton( wfMsg( 'saveusergroups' ), array( 'name' => 'saveusergroups', 'accesskey' => 's' ) ) .
                                        "</td>
                                </tr>" .
                        Xml::closeElement( 'table' ) . "\n" .