Skip to content

Commit

Permalink
Menu: Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kborchers committed Apr 19, 2012
1 parent 890a45a commit 49f8550
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/jquery.ui.menu.js
Expand Up @@ -196,15 +196,16 @@ $.widget( "ui.menu", {
event.preventDefault(); event.preventDefault();
break; break;
case $.ui.keyCode.RIGHT: case $.ui.keyCode.RIGHT:
!this.active.is(".ui-state-disabled") && this.expand( event ); if ( !this.active.is( ".ui-state-disabled" ) ) {
this.expand( event );
}
event.preventDefault(); event.preventDefault();
break; break;
case $.ui.keyCode.ENTER: case $.ui.keyCode.ENTER:
if ( !this.active.is(".ui-state-disabled") ) { if ( !this.active.is( ".ui-state-disabled" ) ) {
if ( this.active.children( "a[aria-haspopup='true']" ).length ) { if ( this.active.children( "a[aria-haspopup='true']" ).length ) {
this.expand( event ); this.expand( event );
} } else {
else {
this.select( event ); this.select( event );
} }
} }
Expand Down

0 comments on commit 49f8550

Please sign in to comment.