Ticket #28704: 28704.4.diff
File 28704.4.diff, 1.1 KB (added by , 6 years ago) |
---|
-
wp-includes/js/media-views.js
4752 4752 toggleSelectionHandler: function( event ) { 4753 4753 var method; 4754 4754 4755 // Don't do anything inside inputs. 4756 if ( 'input' === event.target.tagName.toLowerCase() ) { 4757 return 4758 } 4759 4755 4760 // Catch arrow events 4756 4761 if ( 37 === event.keyCode || 38 === event.keyCode || 39 === event.keyCode || 40 === event.keyCode ) { 4757 4762 this.arrowEvent(event); … … 4767 4772 if ( this.controller.isModeActive( 'grid' ) ) { 4768 4773 // Pass the current target to restore focus when closing 4769 4774 this.controller.trigger( 'edit:attachment', this.model, event.currentTarget ); 4775 4776 // Don't scroll the view and don't attempt to submit anything. 4777 event.stopPropagation(); 4770 4778 return; 4771 4779 } 4772 4780 … … 4779 4787 this.toggleSelection({ 4780 4788 method: method 4781 4789 }); 4790 4791 // Don't scroll the view and don't attempt to submit anything. 4792 event.stopPropagation(); 4782 4793 }, 4783 4794 /** 4784 4795 * @param {Object} event