Menu: Whitespace

This commit is contained in:
kborchers 2012-04-18 21:30:07 -05:00
parent 890a45a22c
commit 49f85509fe

View File

@ -196,15 +196,16 @@ $.widget( "ui.menu", {
event.preventDefault();
break;
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();
break;
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 ) {
this.expand( event );
}
else {
} else {
this.select( event );
}
}