diff --git src/js/_enqueues/lib/comment-reply.js src/js/_enqueues/lib/comment-reply.js
index fae92ee237..92fdf096df 100644
|
|
|
window.addComment = ( function( window ) { |
| 91 | 91 | element.addEventListener( 'touchstart', clickEvent ); |
| 92 | 92 | element.addEventListener( 'click', clickEvent ); |
| 93 | 93 | } |
| | 94 | |
| | 95 | // Enable CTRL/Enter to submit the form. |
| | 96 | commentFormElement.querySelector( 'textarea#comment' ).addEventListener( 'keyup', function( e ) { |
| | 97 | if ( ( e.metaKey || e.ctrlKey ) && e.keyCode === 13 ) { |
| | 98 | // The submit button ID is 'submit' so we can't call commentFormElement.submit(). Click it instead. |
| | 99 | commentFormElement.submit.click(); |
| | 100 | } |
| | 101 | } ); |
| 94 | 102 | } |
| 95 | 103 | |
| 96 | 104 | /** |