Ticket #20879: 20879.2.diff

File 20879.2.diff, 971 bytes (added by koopersmith, 12 months ago)
  • wp-includes/js/customize-base.dev.js

     
    406406                                                synchronizer = api.Element.synchronizer[ type ]; 
    407407                                        if ( 'text' === type || 'password' === type ) 
    408408                                                this.events += ' keyup'; 
     409                                } else if ( this.element.is('textarea') ) { 
     410                                        this.events += ' keyup'; 
    409411                                } 
    410412                        } 
    411413 
  • wp-admin/js/customize-controls.dev.js

     
    573573 
    574574                // Prevent the form from saving when enter is pressed. 
    575575                $('#customize-controls').on( 'keydown', function( e ) { 
     576                        if ( $( e.target ).is('textarea') ) 
     577                                return; 
     578 
    576579                        if ( 13 === e.which ) // Enter 
    577580                                e.preventDefault(); 
    578581                });