Taxonomy: Use `keypress` instead of `keyup` for listening for Enter key to add a tag via Tags meta box.

Fixes issue with Japanese input.

Props miyauchi.
Fixes #42234.

git-svn-id: https://develop.svn.wordpress.org/trunk@41988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-10-24 11:29:34 +00:00
parent eac206b375
commit 92d8a1799e
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ var tagBox, array_unique_noempty;
tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );
});
$( 'input.newtag', ajaxtag ).keyup( function( event ) {
$( 'input.newtag', ajaxtag ).keypress( function( event ) {
if ( 13 == event.which ) {
tagBox.userAction = 'add';
tagBox.flushTags( $( this ).closest( '.tagsdiv' ) );