debug: Check button value in hook

This commit is contained in:
Xurkon
2026-03-20 23:09:22 -05:00
parent 7eb59e9259
commit c9dab76508
+2 -2
View File
@@ -16,10 +16,10 @@ function Hooks:HookQuestLogTitle()
Questie:Debug(Questie.DEBUG_DEVELOP, "[Hooks] Hooking Quest Log Title")
hooksecurefunc("QuestLogTitleButton_OnClick", function(self, button)
-- FIX: Added InCombatLockdown guard to prevent tainting secure execution paths.
-- FIX: Added InCombatLockdown guard to prevent taining secure execution paths.
-- This hook can be called during combat if the player interacts with the quest log
-- while in combat, which may cause taint that propagates to protected functions.
print("[DEBUG] QuestLogTitleButton_OnClick hook! button=" .. tostring(button) .. " shift=" .. tostring(IsShiftKeyDown()))
print("[DEBUG] QuestLogTitleButton_OnClick hook! button=" .. tostring(button) .. " isLeft=" .. tostring(button == "LeftButton") .. " shift=" .. tostring(IsShiftKeyDown()))
if InCombatLockdown() then return end
if (not self) or self.isHeader then
return