mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-25 01:18:42 +00:00
Customizer: Remove some non-functional code.
props afercia. fixes #32839. Built from https://develop.svn.wordpress.org/trunk@33070 git-svn-id: http://core.svn.wordpress.org/trunk@33041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2ce8d2eea2
commit
93a334b361
@ -477,44 +477,13 @@
|
||||
this.$search.val( '' );
|
||||
},
|
||||
|
||||
// Add keyboard accessiblity to the panel
|
||||
// Add a few keyboard enhancements to the panel.
|
||||
keyboardAccessible: function( event ) {
|
||||
var isEnter = ( 13 === event.which ),
|
||||
isEsc = ( 27 === event.which ),
|
||||
isDown = ( 40 === event.which ),
|
||||
isUp = ( 38 === event.which ),
|
||||
isBackTab = ( 9 === event.which && event.shiftKey ),
|
||||
selected = null,
|
||||
firstVisible = this.$el.find( '> .menu-item-tpl:visible:first' ),
|
||||
lastVisible = this.$el.find( '> .menu-item-tpl:visible:last' ),
|
||||
isSearchFocused = $( event.target ).is( this.$search );
|
||||
|
||||
if ( isDown || isUp ) {
|
||||
if ( isDown ) {
|
||||
if ( isSearchFocused ) {
|
||||
selected = firstVisible;
|
||||
} else if ( this.selected && 0 !== this.selected.nextAll( '.menu-item-tpl:visible' ).length ) {
|
||||
selected = this.selected.nextAll( '.menu-item-tpl:visible:first' );
|
||||
}
|
||||
} else if ( isUp ) {
|
||||
if ( isSearchFocused ) {
|
||||
selected = lastVisible;
|
||||
} else if ( this.selected && 0 !== this.selected.prevAll( '.menu-item-tpl:visible' ).length ) {
|
||||
selected = this.selected.prevAll( '.menu-item-tpl:visible:first' );
|
||||
}
|
||||
}
|
||||
|
||||
this.select( selected );
|
||||
|
||||
if ( selected ) {
|
||||
selected.focus();
|
||||
} else {
|
||||
this.$search.focus();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// If enter pressed but nothing entered, don't do anything
|
||||
if ( isEnter && ! this.$search.val() ) {
|
||||
return;
|
||||
|
4
wp-admin/js/customize-nav-menus.min.js
vendored
4
wp-admin/js/customize-nav-menus.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-beta1-33069';
|
||||
$wp_version = '4.3-beta1-33070';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user