Skip to content
Permalink
Browse files

Fix menubar escape key + minor css fix

  • Loading branch information
hanshillen committed Apr 20, 2011
1 parent d77185a commit 03132f93fc961fc23771b1784ada7d46c104dea1
Showing with 3 additions and 4 deletions.
  1. +2 −2 tests/visual/menu/menubar.html
  2. +1 −2 tests/visual/menu/menubar.js
@@ -55,9 +55,9 @@
.ui-menubar .ui-button { float: left; font-weight: normal; border-top-width: 0 !important; border-bottom-width: 0 !important; margin: 0; outline: none; }
.ui-menubar .ui-menubar-link { border-right: 1px dashed transparent; border-left: 1px dashed transparent; }

.ui-menubar, .ui-menubar {
.ui-menubar {
list-style: none;
margin-left: 0;
margin: 0;
padding-left: 0;
}

@@ -38,7 +38,6 @@ $.widget("ui.menubar", {
var menu = $(this);
if (menu.is(":hidden"))
return;
event.stopPropagation();
switch (event.keyCode) {
case $.ui.keyCode.LEFT:
self._left(event);
@@ -119,7 +118,7 @@ $.widget("ui.menubar", {
}
})
self._bind({
keyup: function(event) {
keydown: function(event) {
if (event.keyCode == $.ui.keyCode.ESCAPE && self.open) {
if (self.active.menu("left", event) !== true) {
var active = self.active;

0 comments on commit 03132f9

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