Update the inline docs for the keyEvent callback in the media grid.

Props adamsilverstein
See #29725


git-svn-id: https://develop.svn.wordpress.org/trunk@30378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2014-11-18 04:28:51 +00:00
parent 0297a3c4f6
commit 8c25a14aa0

View File

@ -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 ) ) {