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/includes/dashboard.php

    r21249 r21311  
    506506        <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
    507507        <div class="input-text-wrap">
    508             <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
     508            <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
    509509        </div>
    510510
     
    517517        <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
    518518        <div class="textarea-wrap">
    519             <textarea name="content" id="content" class="mceEditor" rows="3" cols="15" tabindex="2"><?php echo esc_textarea( $post->post_content ); ?></textarea>
     519            <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php echo esc_textarea( $post->post_content ); ?></textarea>
    520520        </div>
    521521
     
    524524        <h4><label for="tags-input"><?php _e('Tags') ?></label></h4>
    525525        <div class="input-text-wrap">
    526             <input type="text" name="tags_input" id="tags-input" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
     526            <input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
    527527        </div>
    528528
     
    532532            <input type="hidden" name="post_type" value="post" />
    533533            <?php wp_nonce_field('add-post'); ?>
    534             <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex'=> 4 ) ); ?>
     534            <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post' ) ); ?>
    535535            <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" />
    536536            <span id="publishing-action">
    537                 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="<?php current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review'); ?>" />
     537                <input type="submit" name="publish" id="publish" accesskey="p" class="button-primary" value="<?php current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review'); ?>" />
    538538                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    539539            </span>
Note: See TracChangeset for help on using the changeset viewer.