mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 09:03:09 +01:00
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:
parent
3b757232d0
commit
d1fe8a8152
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user