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.

Built from https://develop.svn.wordpress.org/trunk@41873


git-svn-id: http://core.svn.wordpress.org/trunk@41707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-10-16 07:57:48 +00:00
parent 4150e805d7
commit 862e8c1807
3 changed files with 3 additions and 3 deletions

View File

@ -3542,7 +3542,7 @@
control.container.on( 'click', '.add-content', function() {
control.addNewPage();
});
control.container.on( 'keyup', '.create-item-input', function( e ) {
control.container.on( 'keydown', '.create-item-input', function( e ) {
if ( 13 === e.which ) { // Enter
control.addNewPage();
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-beta2-41872';
$wp_version = '4.9-beta2-41873';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.