Ticket #45371: 45371.3.patch
File 45371.3.patch, 1.2 KB (added by , 6 years ago) |
---|
-
src/js/_enqueues/admin/tags-box.js
384 384 event.preventDefault(); 385 385 event.stopPropagation(); 386 386 } 387 }).keypress( function( event ) {388 if ( 13 == event.which ) {389 event.preventDefault();390 event.stopPropagation();391 }392 387 }).each( function( i, element ) { 393 388 $( element ).wpTagsSuggest(); 394 389 }); -
src/js/_enqueues/admin/tags-suggest.js
107 107 window.wp.a11y.speak( window.tagsSuggestL10n.termSelected, 'assertive' ); 108 108 event.preventDefault(); 109 109 } else if ( $.ui.keyCode.ENTER === event.keyCode ) { 110 if ( window.tagBox ) { 111 window.tagBox.userAction = 'add'; 112 window.tagBox.flushTags( $( this ).closest( '.tagsdiv' ) ); 113 } 114 110 115 // Do not close Quick Edit / Bulk Edit 111 116 event.preventDefault(); 112 117 event.stopPropagation();