Changeset 58981
- Timestamp:
- 09/03/2024 08:34:35 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/comment-reply.js
r55044 r58981 99 99 // Submit the comment form when the user types [Ctrl] or [Cmd] + [Enter]. 100 100 var submitFormHandler = function( e ) { 101 if ( ( e.metaKey || e.ctrlKey ) && e.keyCode === 13 ) {101 if ( ( e.metaKey || e.ctrlKey ) && e.keyCode === 13 && document.activeElement.tagName.toLowerCase() !== 'a' ) { 102 102 commentFormElement.removeEventListener( 'keydown', submitFormHandler ); 103 103 e.preventDefault();
Note: See TracChangeset
for help on using the changeset viewer.