utilize IsModifierKeyDown

This commit is contained in:
Brues
2026-05-31 13:18:20 -05:00
parent 38b0c74363
commit e12409de60
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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