WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/23/2012 11:46:27 PM (8 years ago)
Author:
azaozz
Message:

Make it possible to tab out of the plugin and theme editors textareas by pressing Esc followed by Tab, fixes #21347

File:
1 edited

Legend:

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

    r20844 r21310  
    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" tabindex="1"><?php echo $content ?></textarea>
    202          <input type="hidden" name="action" value="update" />
    203          <input type="hidden" name="file" value="<?php echo esc_attr( $relative_file ); ?>" />
    204          <input type="hidden" name="theme" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" />
    205          <input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" />
    206          </div>
     201        <div><textarea cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="newcontent-description" tabindex="1"><?php echo $content ?></textarea>
     202        <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>
     203        <input type="hidden" name="action" value="update" />
     204        <input type="hidden" name="file" value="<?php echo esc_attr( $relative_file ); ?>" />
     205        <input type="hidden" name="theme" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" />
     206        <input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" />
     207        </div>
    207208    <?php if ( ! empty( $functions ) ) : ?>
    208209        <div id="documentation" class="hide-if-no-js">
Note: See TracChangeset for help on using the changeset viewer.