WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/24/2010 06:44:46 AM (7 years ago)
Author:
markjaquith
Message:

Make Linking and Internal Linking keyboard-friendly and URL-paste-friendly. props koopersmith. fixes #15544

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/internal-linking.php

    r16510 r16561  
    7171function wp_link_dialog() {
    7272?>
    73 <div id="wp-link">
     73<form id="wp-link" tabindex="-1">
    7474<div id="link-selector">
    7575    <div id="link-options">
    7676        <p class="howto"><?php _e( 'Enter the destination URL:' ); ?></p>
    7777        <div>
    78             <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" /></label>
     78            <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10" autocomplete="off" /></label>
    7979        </div>
    8080        <div>
    81             <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" /></label>
     81            <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20" autocomplete="off" /></label>
    8282        </div>
    8383        <div class="link-target">
    84             <label><input type="checkbox" id="link-target-checkbox" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
     84            <label><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php _e( 'Open link in a new window/tab' ); ?></label>
    8585        </div>
    8686    </div>
     
    9090            <label for="search-field">
    9191                <span><?php _e( 'Search' ); ?></span>
    92                 <input type="text" id="search-field" class="link-search-field" />
     92                <input type="text" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />
    9393                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    9494            </label>
     
    114114    </div>
    115115    <div id="wp-link-update">
    116         <a class="button-primary" href="#"></a>
     116        <?php submit_button( __('Update'), 'primary', 'wp-link-submit', false, array('tabindex' => 100)); ?>
    117117    </div>
    118118</div>
    119 </div>
     119</form>
    120120<?php
    121121}
Note: See TracChangeset for help on using the changeset viewer.