Skip to content
Permalink
Browse files

Fix error for Escape key on menubar item

  • Loading branch information
hanshillen committed Apr 22, 2011
1 parent dc7410f commit 42e11d8e41253571d67a7e1a62caa9376771c292
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/visual/menu/menubar.js
@@ -104,7 +104,7 @@ $.widget("ui.menubar", {
self._bind({
keydown: function(event) {
if (event.keyCode == $.ui.keyCode.ESCAPE) {
if (self.active.menu("left", event) !== true) {
if (self.active && self.active.menu("left", event) !== true) {
var active = self.active;
self.active.blur();
self._close( event );

0 comments on commit 42e11d8

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