update RegisterForClicks

This commit is contained in:
Crum
2018-12-06 14:00:56 -06:00
parent cad9c0707b
commit 4a28efae3b
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ local NUM_BAG_FRAMES = NUM_BAG_FRAMES
local TOTAL_BAGS = NUM_BAG_FRAMES + 2
local ElvUIKeyRing = CreateFrame("CheckButton", "ElvUIKeyRingButton", UIParent, "ItemButtonTemplate")
ElvUIKeyRing:RegisterForClicks("anyUp")
ElvUIKeyRing:RegisterForClicks("LeftButtonUp", "RightButtonUp")
E:StripTextures(ElvUIKeyRing)
ElvUIKeyRing:SetScript("OnClick", function() if CursorHasItem() then PutKeyInKeyRing() else ToggleKeyRing() end end)
ElvUIKeyRing:SetScript("OnReceiveDrag", function() if CursorHasItem() then PutKeyInKeyRing() end end)