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:
Dominik Schilling 2015-07-03 20:37:25 +00:00
parent 2ce8d2eea2
commit 93a334b361
3 changed files with 4 additions and 35 deletions

View File

@ -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;

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-beta1-33069';
$wp_version = '4.3-beta1-33070';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.