mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 770135 - Disable the menu button when in customization mode. r=mconley.
This commit is contained in:
parent
79c1015c01
commit
27dcaf5e0f
@ -68,6 +68,7 @@ CustomizeMode.prototype = {
|
||||
// Same goes for the menu button - if we're customizing, a click to the
|
||||
// menu button means a quick exit from customization mode.
|
||||
window.PanelUI.menuButton.addEventListener("click", this, false);
|
||||
window.PanelUI.menuButton.disabled = true;
|
||||
|
||||
// Let everybody in this window know that we're about to customize.
|
||||
let evt = document.createEvent("CustomEvent");
|
||||
@ -120,6 +121,7 @@ CustomizeMode.prototype = {
|
||||
let tabViewDeck = this.document.getElementById("tab-view-deck");
|
||||
tabViewDeck.removeEventListener("keypress", this, false);
|
||||
this.window.PanelUI.menuButton.removeEventListener("click", this, false);
|
||||
this.window.PanelUI.menuButton.disabled = false;
|
||||
|
||||
this.depopulatePalette();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user