diff --git src/js/_enqueues/admin/tags-box.js src/js/_enqueues/admin/tags-box.js
index d47cbed8a5..5d796051aa 100644
|
|
|
|
| 377 | 377 | * |
| 378 | 378 | * @return {void} |
| 379 | 379 | */ |
| 380 | | $( 'input.newtag', ajaxtag ).keypress( function( event ) { |
| 381 | | if ( 13 == event.which ) { |
| | 380 | $( 'input.newtag', ajaxtag ).on( 'compositionend', function( event ) { |
| | 381 | this.compositionend = true; |
| | 382 | } ).keyup( function( event ) { |
| | 383 | if ( true == this.compositionend ) { |
| | 384 | this.compositionend = false; |
| | 385 | return; |
| | 386 | } |
| | 387 | if ( 13 == event.which && true != this.compositionend ) { |
| 382 | 388 | tagBox.userAction = 'add'; |
| 383 | 389 | tagBox.flushTags( $( this ).closest( '.tagsdiv' ) ); |
| 384 | 390 | event.preventDefault(); |
| 385 | 391 | event.stopPropagation(); |
| 386 | 392 | } |
| 387 | | }).keypress( function( event ) { |
| | 393 | } ).keypress( function( event ) { |
| 388 | 394 | if ( 13 == event.which ) { |
| 389 | 395 | event.preventDefault(); |
| 390 | 396 | event.stopPropagation(); |
| 391 | 397 | } |
| 392 | | }).each( function( i, element ) { |
| | 398 | } ).each( function( i, element ) { |
| 393 | 399 | $( element ).wpTagsSuggest(); |
| 394 | | }); |
| | 400 | } ); |
| 395 | 401 | |
| 396 | 402 | /** |
| 397 | 403 | * Before a post is saved the value currently in the new tag input field will be |