Changeset 21024
- Timestamp:
- 06/07/2012 10:00:59 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/customize-controls.dev.js
r21022 r21024 574 574 // Prevent the form from saving when enter is pressed. 575 575 $('#customize-controls').on( 'keydown', function( e ) { 576 if ( $( e.target ).is('textarea') ) 577 return; 578 576 579 if ( 13 === e.which ) // Enter 577 580 e.preventDefault(); -
trunk/wp-includes/js/customize-base.dev.js
r20988 r21024 407 407 if ( 'text' === type || 'password' === type ) 408 408 this.events += ' keyup'; 409 } else if ( this.element.is('textarea') ) { 410 this.events += ' keyup'; 409 411 } 410 412 }
Note: See TracChangeset
for help on using the changeset viewer.