mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Menu: Whitespace
This commit is contained in:
9
ui/jquery.ui.menu.js
vendored
9
ui/jquery.ui.menu.js
vendored
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user