Media Grid: when the modal is open, don't respond to arrow keys when `<textarea>` has focus.

Props ryelle.
Fixes #29725.


git-svn-id: https://develop.svn.wordpress.org/trunk@29777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-09-29 02:59:40 +00:00
parent 3b757232d0
commit d1fe8a8152
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@
* Respond to the keyboard events: right arrow, left arrow, escape.
*/
keyEvent: function( event ) {
if ( 'INPUT' === event.target.tagName && ! ( event.target.readOnly || event.target.disabled ) ) {
if ( ( 'INPUT' === event.target.nodeName || 'TEXTAREA' === event.target.nodeName ) && ! ( event.target.readOnly || event.target.disabled ) ) {
return;
}