mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Support for "tabbing" through the admin bar and admin menu, fixes #19088
git-svn-id: https://develop.svn.wordpress.org/trunk@19162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -22,6 +22,19 @@ if ( typeof(jQuery) != 'undefined' ) {
|
||||
$(this).parents('#wp-admin-bar-get-shortlink').removeClass('selected');
|
||||
}).focus().select();
|
||||
});
|
||||
|
||||
$('.ab-top-menu > li > a').bind('focus.adminbar', function(){
|
||||
$(this).parent().addClass('hover').find('a').attr('tabindex', '-1').attr('tabindex', '1');
|
||||
});
|
||||
|
||||
$('.ab-top-menu li ul li a').bind('blur.adminbar', function(){
|
||||
var t = $(this);
|
||||
|
||||
setTimeout(function(){
|
||||
if ( !t.parent().parent().find('a:focus').length )
|
||||
t.parents('li.menupop').removeClass('hover');
|
||||
}, 200);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
(function(d, w) {
|
||||
|
||||
Reference in New Issue
Block a user