I am wanting to add a shift-click to recipes in the default TradeSkillFrame. The function that I have found is
Code:
function TradeSkillRecipeListMixin:OnRecipeButtonClicked(recipeButton, recipeInfo, mouseButton)
if mouseButton == "LeftButton" then
self:SetSelectedRecipeID(recipeInfo.recipeID);
elseif mouseButton == "RightButton" then
if recipeInfo.learned and not C_TradeSkillUI.IsTradeSkillGuild() and not C_TradeSkillUI.IsNPCCrafting() and not C_TradeSkillUI.IsTradeSkillLinked() then
self.contextMenuRecipeID = recipeInfo.recipeID;
ToggleDropDownMenu(1, nil, self.RecipeOptionsMenu, recipeButton, 0, 0);
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
end
end
end
How would I hook this function so I could add a Shift-LeftButton to it? Or is this not possible?
(Found that code snippet in the Blizzard_TradeSkillRecipeList.lua file.)