Skip to content
Permalink
Browse files

Merge remote branch 'kborchers/menu_focus'

  • Loading branch information
jzaefferer committed Jul 27, 2011
2 parents da7f419 + e16e99a commit 0ba493d3b4f9d6da35cadc499e9f7ebb6adb31b3
Showing with 12 additions and 0 deletions.
  1. +12 −0 ui/jquery.ui.menu.js
@@ -71,6 +71,18 @@ $.widget( "ui.menu", {
if ( target.length ) {
self.blur( event );
}
})
.bind( "focus.menu", function( event ) {
if ( self.options.disabled ) {
return;
}
self.focus( event, $( event.target ).children( ".ui-menu-item:first" ) );
})
.bind( "blur.menu", function( event ) {
if ( self.options.disabled ) {
return;
}
self.collapseAll( event );
});
this.refresh();

0 comments on commit 0ba493d

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