Make WordPress Core


Ignore:
Timestamp:
07/24/2012 12:15:15 AM (14 years ago)
Author:
azaozz
Message:

Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar).

Add tabindex="-1" for the menu images links to avoid double tab stops there when the menu is expanded.

Fix/add auto-focus on the first input fields on the Add/Edit Post, all taxonomy, all edit taxonomy, Log In and Edit Comment screens.

See #21340.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r21310 r21311  
    227227<form name="template" id="template" action="plugin-editor.php" method="post">
    228228        <?php wp_nonce_field('edit-plugin_' . $file) ?>
    229                 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" aria-describedby="newcontent-description" tabindex="1"><?php echo $content ?></textarea>
     229                <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" aria-describedby="newcontent-description"><?php echo $content ?></textarea>
    230230                <span id="newcontent-description" class="screen-reader-text"><?php _e('Content of the edited file. The Tab key enters a tab character, to move below this area, press the Esc key followed by the Tab key. Shift + Tab works as expected.'); ?></span>
    231231                <input type="hidden" name="action" value="update" />
    … …  
    245245                if ( isset($_GET['phperror']) ) {
    246246                        echo "<input type='hidden' name='phperror' value='1' />";
    247                         submit_button( __( 'Update File and Attempt to Reactivate' ), 'primary', 'submit', false, array( 'tabindex' => '2' ) );
     247                        submit_button( __( 'Update File and Attempt to Reactivate' ), 'primary', 'submit', false );
    248248                } else {
    249                         submit_button( __( 'Update File' ), 'primary', 'submit', false, array( 'tabindex' => '2' ) );
     249                        submit_button( __( 'Update File' ), 'primary', 'submit', false );
    250250                }
    251251        ?>
Note: See TracChangeset for help on using the changeset viewer.