--- a/wp/wp-includes/js/comment-reply.js Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/js/comment-reply.js Fri Sep 05 18:52:52 2025 +0200
@@ -98,7 +98,7 @@
// Submit the comment form when the user types [Ctrl] or [Cmd] + [Enter].
var submitFormHandler = function( e ) {
- if ( ( e.metaKey || e.ctrlKey ) && e.keyCode === 13 ) {
+ if ( ( e.metaKey || e.ctrlKey ) && e.keyCode === 13 && document.activeElement.tagName.toLowerCase() !== 'a' ) {
commentFormElement.removeEventListener( 'keydown', submitFormHandler );
e.preventDefault();
// The submit button ID is 'submit' so we can't call commentFormElement.submit(). Click it instead.