roll: use native insert link function when possible

This commit is contained in:
shagu
2020-12-06 20:13:33 +01:00
parent 5f46be7376
commit 455514a65a
+3 -1
View File
@@ -109,7 +109,9 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function ()
if IsControlKeyDown() then
DressUpItemLink(GetLootRollItemLink(this:GetParent().rollID))
elseif IsShiftKeyDown() then
if ChatFrameEditBox:IsVisible() then
if ChatEdit_InsertLink then
ChatEdit_InsertLink(GetLootRollItemLink(this:GetParent().rollID))
elseif ChatFrameEditBox:IsVisible() then
ChatFrameEditBox:Insert(GetLootRollItemLink(this:GetParent().rollID))
end
end