diff --git a/src/wp-admin/js/inline-edit-post.js b/src/wp-admin/js/inline-edit-post.js index 2011e7ba36..69e4d3b8b4 100644 --- a/src/wp-admin/js/inline-edit-post.js +++ b/src/wp-admin/js/inline-edit-post.js @@ -284,6 +284,7 @@ inlineEditPost = { } }, 'html'); + // Prevent submitting the form when pressing Enter on a focused field. return false; }, diff --git a/src/wp-admin/js/inline-edit-tax.js b/src/wp-admin/js/inline-edit-tax.js index a05dc0954f..b1090de44b 100644 --- a/src/wp-admin/js/inline-edit-tax.js +++ b/src/wp-admin/js/inline-edit-tax.js @@ -137,6 +137,8 @@ inlineEditTax = { } } ); + // Prevent submitting the form when pressing Enter on a focused field. + return false; }, revert : function() {