mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Whitespace
This commit is contained in:
parent
890a45a22c
commit
49f85509fe
9
ui/jquery.ui.menu.js
vendored
9
ui/jquery.ui.menu.js
vendored
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user