WordPress.org

Make WordPress Core

Changeset 29777


Ignore:
Timestamp:
09/29/2014 02:59:40 AM (5 years ago)
Author:
wonderboymusic
Message:

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

Props ryelle.
Fixes #29725.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-grid.js

    r29625 r29777  
    581581         */
    582582        keyEvent: function( event ) {
    583             if ( 'INPUT' === event.target.tagName && ! ( event.target.readOnly || event.target.disabled ) ) {
     583            if ( ( 'INPUT' === event.target.nodeName || 'TEXTAREA' === event.target.nodeName ) && ! ( event.target.readOnly || event.target.disabled ) ) {
    584584                return;
    585585            }
Note: See TracChangeset for help on using the changeset viewer.