Skip to content
Permalink
Browse files

Menu: Close submenu on ESCAPE keypress

  • Loading branch information
jzaefferer committed Mar 17, 2011
1 parent c0f7afd commit 5a112d4e03b4c1073e2136b83ed8316c13eaa536
Showing with 6 additions and 0 deletions.
  1. +6 −0 ui/jquery.ui.menu.js
@@ -112,6 +112,12 @@ $.widget("ui.menu", {
event.preventDefault();
event.stopImmediatePropagation();
break;
case $.ui.keyCode.ESCAPE:
if ( self.left( event ) ) {
event.stopImmediatePropagation();
}
event.preventDefault();
break;
default:
event.stopPropagation();
clearTimeout(self.filterTimer);

0 comments on commit 5a112d4

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