diff options
Diffstat (limited to 'toolkit/actors')
-rw-r--r-- | toolkit/actors/SelectParent.sys.mjs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolkit/actors/SelectParent.sys.mjs b/toolkit/actors/SelectParent.sys.mjs index 6c41903994..7513940cab 100644 --- a/toolkit/actors/SelectParent.sys.mjs +++ b/toolkit/actors/SelectParent.sys.mjs @@ -385,6 +385,7 @@ export var SelectParentHelper = { break; case "fullscreen": + case "FullscreenWarningOnScreen": if (this._currentMenulist) { this._currentMenulist.menupopup.hidePopup(); } @@ -444,6 +445,7 @@ export var SelectParentHelper = { popup.ownerGlobal.addEventListener("mouseup", this, true); popup.ownerGlobal.addEventListener("keydown", this, true); popup.ownerGlobal.addEventListener("fullscreen", this, true); + popup.ownerGlobal.addEventListener("FullscreenWarningOnScreen", this, true); }, _unregisterListeners(popup) { @@ -454,6 +456,11 @@ export var SelectParentHelper = { popup.ownerGlobal.removeEventListener("mouseup", this, true); popup.ownerGlobal.removeEventListener("keydown", this, true); popup.ownerGlobal.removeEventListener("fullscreen", this, true); + popup.ownerGlobal.removeEventListener( + "FullscreenWarningOnScreen", + this, + true + ); }, /** |