mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Theme Customizer: Don't switch themes and update settings when the enter key is pressed. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b198c61062
commit
0f960750b0
@ -75,6 +75,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.refresh();
|
this.refresh();
|
||||||
|
|
||||||
|
// Prevent the form from saving when enter is pressed.
|
||||||
|
this.form.on( 'keydown', function( e ) {
|
||||||
|
if ( 13 === e.which ) // Enter
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
loader: function() {
|
loader: function() {
|
||||||
var self = this,
|
var self = this,
|
||||||
|
Loading…
Reference in New Issue
Block a user