From e12409de60ab7734f2b474a566df1a3f3ac63657 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 31 May 2026 13:18:20 -0500 Subject: [PATCH] utilize IsModifierKeyDown --- modules/questitem.lua | 2 +- modules/sellvalue.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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