Changeset 29331
- Timestamp:
- 07/30/2014 05:38:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29312 r29331 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 ) { … … 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 } … … 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 /**
Note: See TracChangeset
for help on using the changeset viewer.