Changeset 41988 – WordPress Trac (original) (raw)

Timestamp:

10/24/2017 11:29:34 AM (8 years ago)

SergeyBiryukov

Message:

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.

File:

Legend:

Unmodified

Added

Removed

r41563 r41988
222 222 });
223 223
224 $( 'input.newtag', ajaxtag ).keyup( function( event ) {
224 $( 'input.newtag', ajaxtag ).keypress( function( event ) {
225 225 if ( 13 == event.which ) {
226 226 tagBox.userAction = 'add';

Note: See TracChangeset for help on using the changeset viewer.