From 92d8a1799e0d273ae830e79ffc88a8d99a189c56 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 24 Oct 2017 11:29:34 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/tags-box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/tags-box.js b/src/wp-admin/js/tags-box.js index 0c508027f8..9603c1ea7c 100644 --- a/src/wp-admin/js/tags-box.js +++ b/src/wp-admin/js/tags-box.js @@ -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' ) );