diff options
author | kborchers <kris.borchers@gmail.com> | 2012-07-13 13:36:00 -0500 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-07-13 13:36:00 -0500 |
commit | 5eb1aeec4ebba7f1366f355331664098e42dfe49 (patch) | |
tree | 408ace97f27d66af400d7236294a0fcf23405775 /ui/jquery.ui.menu.js | |
parent | be0be892d3a2658f1f4518a7d3346ef356aa89c6 (diff) | |
download | jquery-ui-5eb1aeec4ebba7f1366f355331664098e42dfe49.tar.gz jquery-ui-5eb1aeec4ebba7f1366f355331664098e42dfe49.zip |
Menu: Remove unnecessary click delay and change focus delay for AT to the default delay
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index be04fff1c..75cfac40b 100644 --- a/ui/jquery.ui.menu.js +++ b/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 ); + }); } }, |