WordPress.org

Make WordPress Core

Ticket #28704: 28704.diff

File 28704.diff, 646 bytes (added by adamsilverstein, 6 years ago)

Skip arrow navigation when event is inside an input field

  • src/wp-includes/js/media-views.js

     
    47844784                 * @param {Object} event
    47854785                 */
    47864786                arrowEvent: function( event ) {
     4787                        // Skip arrow navigation when event is inside an input field
     4788                        if ( 'input' === event.target.tagName.toLowerCase() ) {
     4789                                return;
     4790                        }
    47874791                        var attachment = $('.attachments-browser .attachment'),
    47884792                                attachmentsWidth = $('.attachments-browser .attachments').width(),
    47894793                                thumbnailWidth = attachment.first().innerWidth() + 16,