Make WordPress Core

Changeset 41873


Ignore:
Timestamp:
10/16/2017 07:56:28 AM (7 years ago)
Author:
westonruter
Message:

Customize: Use keydown instead of keyup for listening for enter key to add page stub via dropdown-pages control.

Fixes issue with Japanese input.

Props miyauchi.
Amends [38906].
See #34923.
Fixes #42233.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r41869 r41873  
    35433543                    control.addNewPage();
    35443544                });
    3545                 control.container.on( 'keyup', '.create-item-input', function( e ) {
     3545                control.container.on( 'keydown', '.create-item-input', function( e ) {
    35463546                    if ( 13 === e.which ) { // Enter
    35473547                        control.addNewPage();
Note: See TracChangeset for help on using the changeset viewer.