Bug 611063 - Android Content Menu overlays Find in Page/Form Filler but still allows typing [r=mfinkle]
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -2967,22 +2967,32 @@ var AppMenu = {
return this.panel = document.getElementById("appmenu");
},
show: function show() {
if (BrowserUI.activePanel || BrowserUI.isPanelVisible())
return;
this.panel.setAttribute("count", this.panel.childNodes.length);
this.panel.collapsed = false;
+
+ addEventListener("keypress", this, true);
+
BrowserUI.lockToolbar();
BrowserUI.pushPopup(this, [this.panel, Elements.toolbarContainer]);
},
hide: function hide() {
this.panel.collapsed = true;
+
+ removeEventListener("keypress", this, true);
+
BrowserUI.unlockToolbar();
BrowserUI.popPopup(this);
},
toggle: function toggle() {
this.panel.collapsed ? this.show() : this.hide();
+ },
+
+ handleEvent: function handleEvent(aEvent) {
+ this.hide();
}
};