WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/24/2012 12:15:15 AM (8 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/theme-editor.php

    r21310 r21311  
    199199    <form name="template" id="template" action="theme-editor.php" method="post">
    200200    <?php wp_nonce_field( 'edit-theme_' . $file . $stylesheet ); ?>
    201         <div><textarea cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="newcontent-description" tabindex="1"><?php echo $content ?></textarea>
     201        <div><textarea cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="newcontent-description"><?php echo $content ?></textarea>
    202202        <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>
    203203        <input type="hidden" name="action" value="update" />
     
    221221<?php
    222222    if ( is_writeable( $file ) ) :
    223         submit_button( __( 'Update File' ), 'primary', 'submit', true, array( 'tabindex' => '2' ) );
     223        submit_button( __( 'Update File' ), 'primary', 'submit', true );
    224224    else : ?>
    225225<p><em><?php _e('You need to make this file writable before you can save your changes. See <a href="http://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.'); ?></em></p>
Note: See TracChangeset for help on using the changeset viewer.