Skip to content

Commit 8661837

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@41873 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 850db3c commit 8661837

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/js/customize-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3542,7 +3542,7 @@
35423542
control.container.on( 'click', '.add-content', function() {
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();
35483548
}

0 commit comments

Comments
 (0)