From 9ac96610b703ddf2fd99f1fc07761c1763b2d85e Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Thu, 9 Mar 2006 20:40:48 +0000 Subject: [PATCH] Fix to the menu. When menu shows up, remove the focus from the toolbar item. git-svn-id: svn://10.0.0.236/trunk@192107 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/minimo/chrome/content/minimo.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/minimo/chrome/content/minimo.js b/mozilla/minimo/chrome/content/minimo.js index f0877d7e7f2..a188762104e 100755 --- a/mozilla/minimo/chrome/content/minimo.js +++ b/mozilla/minimo/chrome/content/minimo.js @@ -1310,8 +1310,16 @@ function BrowserMenuSpin() { } function MenuEnableEscapeKeys() { + + // we remove the focus from the toolbar button to avoid a command_action (keyboard event) to + // call the menu again. + + document.getElementById("menu_MainPopup").focus(); + // When popups are on, not working...bugs like https://bugzilla.mozilla.org/show_bug.cgi?id=55495 + document.addEventListener("keypress",MenuHandleMenuEscape,true); + } function MenuDisableEscapeKeys() {