Changeset 29584
- Timestamp:
- 08/24/2014 04:42:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29582 r29584 5279 5279 }, 5280 5280 5281 restoreFocus: function() { 5282 this.$( 'li.selected:first' ).focus(); 5283 }, 5284 5281 5285 arrowEvent: function( event ) { 5282 5286 var attachments = this.$el.children( 'li' ), … … 6006 6010 6007 6011 // Add keydown listener to the instance of the Attachments view 6008 this.attachments.listenTo( this.controller, 'attachment:keydown:arrow', this.attachments.arrowEvent ); 6012 this.attachments.listenTo( this.controller, 'attachment:keydown:arrow', this.attachments.arrowEvent ); 6013 this.attachments.listenTo( this.controller, 'attachment:details:shift-tab', this.attachments.restoreFocus ); 6009 6014 6010 6015 this.views.add( this.attachments ); … … 6583 6588 toggleSelectionHandler: function( event ) { 6584 6589 if ( 'keydown' === event.type && 9 === event.keyCode && event.shiftKey && event.target === this.$( ':tabbable' ).get( 0 ) ) { 6585 this. $( ':tabbable' ).eq( 0 ).blur();6590 this.controller.trigger( 'attachment:details:shift-tab', event ); 6586 6591 return false; 6587 6592 }
Note: See TracChangeset
for help on using the changeset viewer.