Toolbar: Make network admin accessible via keyboard.
props Cheffheid. fixes #29422. Built from https://develop.svn.wordpress.org/trunk@31111 git-svn-id: http://core.svn.wordpress.org/trunk@31092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e214fce67f
commit
a2f9b410f8
|
@ -91,7 +91,9 @@ if ( typeof(jQuery) != 'undefined' ) {
|
|||
if ( e.which != 13 )
|
||||
return;
|
||||
|
||||
var target = $(e.target), wrap = target.closest('ab-sub-wrapper');
|
||||
var target = $(e.target),
|
||||
wrap = target.closest('.ab-sub-wrapper'),
|
||||
parentHasHover = target.parent().hasClass('hover');
|
||||
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
@ -100,7 +102,11 @@ if ( typeof(jQuery) != 'undefined' ) {
|
|||
wrap = $('#wpadminbar .quicklinks');
|
||||
|
||||
wrap.find('.menupop').removeClass('hover');
|
||||
target.parent().toggleClass('hover');
|
||||
|
||||
if ( ! parentHasHover ) {
|
||||
target.parent().toggleClass('hover');
|
||||
}
|
||||
|
||||
target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh);
|
||||
}).each(refresh);
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31110';
|
||||
$wp_version = '4.2-alpha-31111';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue