mirror of
git://develop.git.wordpress.org/
synced 2025-02-11 18:41:37 +01:00
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:
parent
eac206b375
commit
92d8a1799e
@ -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' ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user