mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Allow Backround Image's "select a file" link to be activated by pressing return on the keyboard.
props adamsilverstein. fixes #22606 git-svn-id: https://develop.svn.wordpress.org/trunk@23399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -886,6 +886,11 @@
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
$('.upload-dropzone a.upload').keydown( function( event ) {
|
||||
if ( 13 === event.which ) // enter
|
||||
this.click();
|
||||
});
|
||||
|
||||
$('.collapse-sidebar').on( 'click keydown', function( event ) {
|
||||
if ( event.type === 'keydown' && 13 !== event.which ) // enter
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user