WordPress.org

Make WordPress Core

Changeset 23399


Ignore:
Timestamp:
02/08/2013 06:51:19 PM (9 years ago)
Author:
markjaquith
Message:

Allow Backround Image's "select a file" link to be activated by pressing return on the keyboard.

props adamsilverstein. fixes #22606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/customize-controls.js

    r22798 r23399  
    885885                parent.send( 'close' );
    886886            event.preventDefault();
     887        });
     888
     889        $('.upload-dropzone a.upload').keydown( function( event ) {
     890            if ( 13 === event.which ) // enter
     891                this.click();
    887892        });
    888893
Note: See TracChangeset for help on using the changeset viewer.