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
This commit is contained in:
parent
850db3c6a0
commit
8661837eb9
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user