Skip to content
Permalink
Browse files

Menubar: Close submenus on Escape first, only close all when on top-l…

…evel
  • Loading branch information
jzaefferer committed Mar 17, 2011
1 parent 37fee24 commit b53f242d2cbb0faf680f905914c2197d95c03735
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/visual/menu/menubar.js
@@ -92,7 +92,9 @@ $.widget("ui.menubar", {
self._bind({
keyup: function(event) {
if (event.keyCode == $.ui.keyCode.ESCAPE) {
self._close();
if (self.active.menu("left") !== true) {
self._close();
}
}
}
});

0 comments on commit b53f242

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