Add accesskeys 's' for save actions

This commit is contained in:
Raimond Spekking 2010-03-13 17:35:12 +00:00
parent ac8439bd8a
commit de5b7258b9
2 changed files with 5 additions and 2 deletions

View file

@ -423,7 +423,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
);
if ( $this->canEdit() ) {
$form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ) );
$form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ), array( 'accesskey' => 's' ) );
$form .= Xml::hidden(
'wpEditToken',
$wgUser->editToken( array( 'abusefilter', $filter ) )

View file

@ -11,7 +11,10 @@ class AbuseFilterViewImport extends AbuseFilterView {
$wgOut->addWikiMsg( 'abusefilter-import-intro' );
$html = Xml::textarea( 'wpImportText', '', 40, 20 );
$html .= Xml::submitButton( wfMsg( 'abusefilter-import-submit' ) );
$html .= Xml::submitButton(
wfMsg( 'abusefilter-import-submit' ),
array( 'accesskey' => 's' )
);
$url = SpecialPage::getTitleFor( 'AbuseFilter', 'new' )->getFullURL();
$html = Xml::tags( 'form', array( 'method' => 'post', 'action' => $url ), $html );