WordPress.org

Make WordPress Core

Ticket #28704: 28704.2.diff

File 28704.2.diff, 597 bytes (added by adamsilverstein, 6 years ago)

cleaner fix, check for in input earlier

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

     
    47534753                        var method;
    47544754
    47554755                        // Catch arrow events
    4756                         if ( 37 === event.keyCode || 38 === event.keyCode || 39 === event.keyCode || 40 === event.keyCode ) {
     4756                        if ( 'input' !== event.target.tagName.toLowerCase() && ( 37 === event.keyCode || 38 === event.keyCode || 39 === event.keyCode || 40 === event.keyCode ) ) {
    47574757                                this.arrowEvent(event);
    47584758                                return;
    47594759                        }