Skip to content
Permalink
Browse files

Prevent branch menuitems from firing select event

  • Loading branch information
hanshillen committed Apr 22, 2011
1 parent 45c418d commit dc7410f55b4398891e278efec110d1ed5e6f1f92
Showing with 9 additions and 2 deletions.
  1. +9 −2 ui/jquery.ui.menu.js
@@ -108,9 +108,16 @@ $.widget("ui.menu", {
event.preventDefault();
break;
case $.ui.keyCode.ENTER:
self.select( event );
if (self.active.children("a[aria-haspopup='true']").length) {
if (self.right( event )) {
event.stopImmediatePropagation();
}
}
else {
self.select( event );
event.stopImmediatePropagation();
}
event.preventDefault();
event.stopImmediatePropagation();
break;
case $.ui.keyCode.ESCAPE:
if ( self.left( event ) ) {

0 comments on commit dc7410f

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