Ticket #54548: 54548.2.diff
File 54548.2.diff, 770 bytes (added by , 3 years ago) |
---|
-
src/js/_enqueues/admin/edit-comments.js
1032 1032 else if ( rtop - 20 < scrollTop ) 1033 1033 window.scroll(0, rtop - 35); 1034 1034 1035 $('#replycontent').trigger( 'focus' ).on( 'keyup', function(e){ 1036 if ( e.which == 27 ) 1037 commentReply.revert(); // Close on Escape. 1038 }); 1035 $( '#replycontent' ).trigger( 'focus' ).on( 'keyup', function( e ) { 1036 // Close on Escape. Account for Input Method Editor (IME) converters. 1037 if ( e.which === 27 && ! e.originalEvent.isComposing ) { 1038 commentReply.revert(); 1039 } 1040 } ); 1039 1041 }, 600); 1040 1042 1041 1043 return false;