From: jzaefferer Date: Thu, 17 Mar 2011 12:58:57 +0000 (+0100) Subject: Menubar: Close submenus on Escape first, only close all when on top-level X-Git-Tag: 1.9m5~208 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b53f242d2cbb0faf680f905914c2197d95c03735;p=jquery-ui.git Menubar: Close submenus on Escape first, only close all when on top-level --- diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js index bfd691bf0..1da54d532 100644 --- a/tests/visual/menu/menubar.js +++ b/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(); + } } } });