Make WordPress Core

Ticket #48536: 48536.2.diff

File 48536.2.diff, 637 bytes (added by davidbaumwald, 6 years ago)

Refreshed patch

  • src/js/_enqueues/admin/edit-comments.js

    diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js
    index 1a64268b6a..a9ec7c685d 100644
    a b window.commentReply = { 
    800800                        }
    801801                });
    802802
     803                $( 'textarea#replycontent', row ).keypress( function( e ) {
     804                        if ( ( e.metaKey || e.ctrlKey ) && ( e.which == 10 || e.which == 13 ) ) {
     805                                commentReply.send();
     806                                e.preventDefault();
     807                                return false;
     808                        }
     809                });
     810
    803811                // Add events.
    804812                $('#the-comment-list .column-comment > p').dblclick(function(){
    805813                        commentReply.toggle($(this).parent());