mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01: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: http://core.svn.wordpress.org/trunk@23399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6953fe2a25
commit
c2f837a3b4
@ -886,6 +886,11 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.upload-dropzone a.upload').keydown( function( event ) {
|
||||||
|
if ( 13 === event.which ) // enter
|
||||||
|
this.click();
|
||||||
|
});
|
||||||
|
|
||||||
$('.collapse-sidebar').on( 'click keydown', function( event ) {
|
$('.collapse-sidebar').on( 'click keydown', function( event ) {
|
||||||
if ( event.type === 'keydown' && 13 !== event.which ) // enter
|
if ( event.type === 'keydown' && 13 !== event.which ) // enter
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user