Make WordPress Core

Changeset 20035


Ignore:
Timestamp:
02/29/2012 06:28:02 AM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Don't switch themes and update settings when the enter key is pressed. see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/customize-controls.dev.js

    r20031 r20035  
    7676
    7777            this.refresh();
     78
     79            // Prevent the form from saving when enter is pressed.
     80            this.form.on( 'keydown', function( e ) {
     81                if ( 13 === e.which ) // Enter
     82                    e.preventDefault();
     83            });
    7884        },
    7985        loader: function() {
Note: See TracChangeset for help on using the changeset viewer.