WordPress.org

Make WordPress Core

Changeset 41988


Ignore:
Timestamp:
10/24/2017 11:29:34 AM (2 years ago)
Author:
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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/tags-box.js

    r41563 r41988  
    222222            });
    223223
    224             $( 'input.newtag', ajaxtag ).keyup( function( event ) {
     224            $( 'input.newtag', ajaxtag ).keypress( function( event ) {
    225225                if ( 13 == event.which ) {
    226226                    tagBox.userAction = 'add';
Note: See TracChangeset for help on using the changeset viewer.