Make WordPress Core


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

    r21306 r21311  
    770770            <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
    771771            <div>
    772                 <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10" name="href" /></label>
     772                <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" name="href" /></label>
    773773            </div>
    774774            <div>
    775                 <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20" name="linktitle" /></label>
     775                <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" name="linktitle" /></label>
    776776            </div>
    777777            <div class="link-target">
    778                 <label><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
     778                <label><input type="checkbox" id="link-target-checkbox" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
    779779            </div>
    780780        </div>
     
    786786                    <span><img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    787787                    <?php _e( 'Search' ); ?></span>
    788                     <input type="search" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />
     788                    <input type="search" id="search-field" class="link-search-field" autocomplete="off" />
    789789                </label>
    790790            </div>
     
    809809        </div>
    810810        <div id="wp-link-update">
    811             <input type="submit" tabindex="100" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
     811            <input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">
    812812        </div>
    813813    </div>
Note: See TracChangeset for help on using the changeset viewer.