mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 00:27:38 +02:00
Update the inline docs for the keyEvent
callback in the media grid.
Props adamsilverstein See #29725 Built from https://develop.svn.wordpress.org/trunk@30378 git-svn-id: http://core.svn.wordpress.org/trunk@30375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02c773efb0
commit
5945363d82
@ -576,7 +576,8 @@
|
|||||||
return ( this.getCurrentIndex() - 1 ) > -1;
|
return ( this.getCurrentIndex() - 1 ) > -1;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Respond to the keyboard events: right arrow, left arrow, escape.
|
* Respond to the keyboard events: right arrow, left arrow, except when
|
||||||
|
* focus is in a textarea or input field.
|
||||||
*/
|
*/
|
||||||
keyEvent: function( event ) {
|
keyEvent: function( event ) {
|
||||||
if ( ( 'INPUT' === event.target.nodeName || 'TEXTAREA' === event.target.nodeName ) && ! ( event.target.readOnly || event.target.disabled ) ) {
|
if ( ( 'INPUT' === event.target.nodeName || 'TEXTAREA' === event.target.nodeName ) && ! ( event.target.readOnly || event.target.disabled ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user