loot: use native insert link function when possible

This commit is contained in:
shagu
2020-12-06 20:54:16 +01:00
parent ddd6781c17
commit c96463c0a5
+5 -3
View File
@@ -541,10 +541,12 @@ pfUI:RegisterModule("loot", "vanilla:tbc", function ()
frame:SetPoint("TOP", pfUI.loot, "TOP", 4, (-border*2+22)-(id*22))
frame:SetScript("OnClick", function()
if ( IsControlKeyDown() ) then
if IsControlKeyDown() then
DressUpItemLink(GetLootSlotLink(this:GetID()))
elseif ( IsShiftKeyDown() ) then
if ( ChatFrameEditBox:IsVisible() ) then
elseif IsShiftKeyDown() then
if ChatEdit_InsertLink then
ChatEdit_InsertLink(GetLootSlotLink(this:GetID()))
elseif ChatFrameEditBox:IsVisible() then
ChatFrameEditBox:Insert(GetLootSlotLink(this:GetID()))
end
end