WordPress.org

Make WordPress Core

Changeset 21586


Ignore:
Timestamp:
08/22/2012 06:29:42 PM (7 years ago)
Author:
azaozz
Message:

Fix tabbing from the title to the editor on the Edit Post screen, see #21173

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.dev.js

    r21303 r21586  
    9797    }
    9898
    99     //  This code is meant to allow tabbing from Title to Post content.
    100     $('#title').bind('keydown.editor-focus', function(e) {
     99    // This code is meant to allow tabbing from Title to Post content.
     100    $('#title').on('keydown.editor-focus', function(e) {
    101101        var ed;
    102102
     
    108108                ed = tinymce.get('content');
    109109
    110             if ( ed && !ed.isHidden() )
    111                 $('#content_tbl td.mceToolbar > a').focus();
    112             else
     110            if ( ed && !ed.isHidden() ) {
     111                $(this).one('keyup', function(e){
     112                    $('#content_tbl td.mceToolbar > a').focus();
     113                });
     114            } else {
    113115                $('#content').focus();
     116            }
    114117
    115118            e.preventDefault();
Note: See TracChangeset for help on using the changeset viewer.