Skip to content
Permalink
Browse files

Menu: Remove unnecessary click delay and change focus delay for AT to…

… the default delay
  • Loading branch information...
kborchers committed Jul 13, 2012
1 parent be0be89 commit 5eb1aeec4ebba7f1366f355331664098e42dfe49
Showing with 5 additions and 7 deletions.
  1. +5 −7 ui/jquery.ui.menu.js
@@ -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 );
});
}
},

0 comments on commit 5eb1aee

Please sign in to comment.
You can’t perform that action at this time.