mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
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:
parent
4150e805d7
commit
862e8c1807
@ -3542,7 +3542,7 @@
|
|||||||
control.container.on( 'click', '.add-content', function() {
|
control.container.on( 'click', '.add-content', function() {
|
||||||
control.addNewPage();
|
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
|
if ( 13 === e.which ) { // Enter
|
||||||
control.addNewPage();
|
control.addNewPage();
|
||||||
}
|
}
|
||||||
|
2
wp-admin/js/customize-controls.min.js
vendored
2
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user