Merge pull request #5 from dpatti/SearchFrame
Xruptor [11-27-11 - 13:26]
Merge pull request #5 from dpatti/SearchFrame
Use the built-in HandleModifiedItemClick
diff --git a/BagSync_Search.lua b/BagSync_Search.lua
index 5c3835c..ce10f9b 100644
--- a/BagSync_Search.lua
+++ b/BagSync_Search.lua
@@ -128,14 +128,15 @@ function bgSearch:LoadSlider()
row:SetScript("OnLeave", OnLeave)
row:SetScript("OnClick", function(self)
if self.link then
- if IsShiftKeyDown() then
+ if HandleModifiedItemClick(self.link) then
+ return
+ end
+ if IsModifiedClick("CHATLINK") then
local editBox = ChatEdit_ChooseBoxForSend()
if editBox then
editBox:Insert(self.link)
ChatFrame_OpenChat(editBox:GetText())
end
- elseif IsControlKeyDown() then
- DressUpItemLink(self.link)
end
end
end)