Skip to content

Commit

Permalink
Fixed menu actions not firing depending on ActionButtonUseKeyDown CVar
Browse files Browse the repository at this point in the history
  • Loading branch information
artscout committed Nov 10, 2022
1 parent f8c4567 commit 684b029
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Broker_Portals.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Author: CrazyBenny of Stormrage-EU and Bissental on FlameGor-EU
## X-Email: michal AT svab DOT net
## LastUpdate: 2020-01-26T13:02:10Z
## Version: 1.11.8
## Version: 1.11.9
## OptionalDeps: LibDBIcon-1.0

## SavedVariables: PortalsDB
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.11.9:
- Fixed menu action not firing depending on "ActionButtonUseKeyDown" CVar

1.11.8:
- Fixed branch mixap, added Heartstone toys

Expand Down
7 changes: 6 additions & 1 deletion libs/LibDewdrop-3.0/LibDewdrop-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ local function secureFrame_Show(self)
for k,v in pairs(self.secure) do
self:SetAttribute(k, v)
end
self:RegisterForClicks("LeftButtonDown")
state = C_CVar.GetCVarBool("ActionButtonUseKeyDown")
if state then
self:RegisterForClicks("LeftButtonDown")
else
self:RegisterForClicks("LeftButtonUp")
end

secureFrame:SetFrameStrata(owner:GetFrameStrata())
secureFrame:SetFrameLevel(owner:GetFrameLevel()+1)
Expand Down

0 comments on commit 684b029

Please sign in to comment.