Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion EllesmereUIOptions/EUI_QoL_RaidTools_Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ initFrame:SetScript("OnEvent", function(self)
PP.Size(button, 126, 29)
PP.Point(button, "RIGHT", region, "RIGHT", -20, 0)
button:SetFrameLevel(region:GetFrameLevel() + 4)
button:RegisterForClicks("LeftButtonUp", "RightButtonUp")
button:RegisterForClicks("AnyUp")

local bg = EllesmereUI.SolidTex(button, "BACKGROUND",
EllesmereUI.DD_BG_R, EllesmereUI.DD_BG_G,
Expand Down Expand Up @@ -393,6 +393,22 @@ initFrame:SetScript("OnEvent", function(self)

button:SetScript("OnClick", function(self, mouseButton)
if QuickFireDisabled() then return end
-- OnKeyDown never fires for mouse buttons, so a listening
-- capture takes them here instead. Plain Left/Right stay
-- excluded (arm/unbind); modified Left/Right are fine.
if listening and ((mouseButton ~= "LeftButton" and mouseButton ~= "RightButton")
or IsModifierKeyDown()) then
listening = false
self:EnableKeyboard(false)
Set(key, CreateKeyChordStringUsingMetaKeyState(
GetConvertedKeyOrButton(mouseButton)))
Refresh()
RefreshState()
if EllesmereUI._NotifySettingWrite then
EllesmereUI._NotifySettingWrite(region)
end
return
end
if mouseButton == "RightButton" then
if listening then
listening = false
Expand Down