mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Menu: Remove unnecessary click delay and change focus delay for AT to the default delay
This commit is contained in:
parent
be0be892d3
commit
5eb1aeec4e
12
ui/jquery.ui.menu.js
vendored
12
ui/jquery.ui.menu.js
vendored
@ -77,12 +77,10 @@ $.widget( "ui.menu", {
|
||||
mouseHandled = true;
|
||||
|
||||
this.select( event );
|
||||
// Redirect focus to the menu with a delay for firefox
|
||||
this._delay(function() {
|
||||
if ( !this.element.is(":focus") ) {
|
||||
this.element.focus();
|
||||
}
|
||||
}, 20 );
|
||||
// Redirect focus to the menu
|
||||
if ( !this.element.is(":focus") ) {
|
||||
this.element.focus();
|
||||
}
|
||||
}
|
||||
},
|
||||
"mouseenter .ui-menu-item": function( event ) {
|
||||
@ -488,7 +486,7 @@ $.widget( "ui.menu", {
|
||||
// Delay so Firefox will not hide activedescendant change in expanding submenu from AT
|
||||
this._delay(function() {
|
||||
this.focus( event, newItem );
|
||||
}, 20 );
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user