fix: alt click instead of ctrl click

This commit is contained in:
Salikh Gurgenidze
2025-12-23 17:30:24 +04:00
parent 4d403b5662
commit e11e13af87
3 changed files with 42 additions and 41 deletions
+3 -3
View File
@@ -321,7 +321,7 @@ function QuestItemBar:Update()
UseContainerItem(this.bagID, this.slotID)
end
elseif arg1 == "RightButton" then
if IsControlKeyDown() then
if IsAltKeyDown() then
-- Clear pin for this slot
local pins = addon.Modules.DB:GetSetting("questBarPinnedItems") or {}
pins[index] = nil
@@ -353,7 +353,7 @@ function QuestItemBar:Update()
-- Pinning from cursor is hard in 1.12 without hooks.
end
elseif arg1 == "RightButton" then
if IsControlKeyDown() then
if IsAltKeyDown() then
-- Clear pin for this slot
local pins = addon.Modules.DB:GetSetting("questBarPinnedItems") or {}
pins[index] = nil
@@ -374,7 +374,7 @@ function QuestItemBar:Update()
GameTooltip:SetText("Quest Slot " .. index)
GameTooltip:AddLine("Auto-fills with usable quest items.", 1, 1, 1)
GameTooltip:AddLine("Alt-Click an item in bags to pin it.", 0, 1, 0)
GameTooltip:AddLine("Ctrl-Right-Click to unpin.", 0.5, 0.5, 0.5)
GameTooltip:AddLine("Alt-Right-Click to unpin.", 0.5, 0.5, 0.5)
GameTooltip:Show()
end