Quantcast

Use the built-in HandleModifiedItemClick

dpatti [11-27-11 - 05:51]
Use the built-in HandleModifiedItemClick
Filename
BagSync_Search.lua
diff --git a/BagSync_Search.lua b/BagSync_Search.lua
index 327e848..912537b 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)