Customizer: Don't add a menu item twice when using the keyboard.

Buttons don't need keyboard events, they natively support keyboard interaction and they just need a click event.

fixes #32665.
Built from https://develop.svn.wordpress.org/trunk@32890


git-svn-id: http://core.svn.wordpress.org/trunk@32861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-06-20 19:01:25 +00:00
parent 2e8245ba0e
commit 4a13015c98
3 changed files with 2 additions and 3 deletions

View File

@ -101,7 +101,6 @@
'click #menu-items-search': 'debounceSearch',
'focus .menu-item-tpl': 'focus',
'click .menu-item-tpl': '_submit',
'keypress .menu-item-tpl': '_submit',
'click #custom-menu-item-submit': '_submitLink',
'keypress #custom-menu-item-name': '_submitLink',
'keydown': 'keyboardAccessible'

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32889';
$wp_version = '4.3-alpha-32890';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.