diff --git a/modules/questitem.lua b/modules/questitem.lua index cf4f691c..e72a3613 100644 --- a/modules/questitem.lua +++ b/modules/questitem.lua @@ -146,7 +146,7 @@ pfUI:RegisterModule("questitem", function () -- populates ItemRefTooltip, so we just read the item back out of the tooltip -- instead of re-parsing the "item:NNN" out of the link string. hooksecurefunc("SetItemRef", function() - if IsAltKeyDown() or IsShiftKeyDown() or IsControlKeyDown() then return end + if IsModifierKeyDown() then return end if ItemRefTooltip:HasItem() then local name, _, id = ItemRefTooltip:GetItem() if name and id then AddTooltip(ItemRefTooltip, name, id) end diff --git a/modules/sellvalue.lua b/modules/sellvalue.lua index 3e2ff0a9..a24f8b37 100644 --- a/modules/sellvalue.lua +++ b/modules/sellvalue.lua @@ -41,7 +41,7 @@ pfUI:RegisterModule("sellvalue", function () end) hooksecurefunc("SetItemRef", function() - if IsAltKeyDown() or IsShiftKeyDown() or IsControlKeyDown() then return end + if IsModifierKeyDown() then return end if ItemRefTooltip:HasItem() then local _, _, id = ItemRefTooltip:GetItem() if id then AddVendorPrices(ItemRefTooltip, id, 1) end