Skip to content

Commit 2fbaa66

Browse files
committed
fix modes.isMenuShown is wrong after menuitem's tooltip hidden
1 parent 9b27c24 commit 2fbaa66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/content/events.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,9 @@ const Events = Module("events", {
10781078
modes.isMenuShown = true;
10791079
},
10801080

1081-
onPopupHidden: function () {
1081+
onPopupHidden: function (event) {
1082+
if (event.originalTarget.localName == "tooltip" || event.originalTarget.id == "liberator-visualbell")
1083+
return;
10821084
// gContextMenu is set to NULL, when a context menu is closed
10831085
if ((window.gContextMenu == null || !window.gContextMenu.shouldDisplay) && !this._activeMenubar)
10841086
modes.isMenuShown = false;

0 commit comments

Comments
 (0)