hoverbind: Escape clears every key bound to the button

This commit is contained in:
Brues
2026-10-22 21:00:01 -05:00
parent 340bd9be9e
commit d58060b188
+5 -3
View File
@@ -161,10 +161,12 @@ pfUI:RegisterModule("hoverbind", function ()
if arg1 == "ESCAPE" and not binding then pfUI.hoverbind:Hide() return end
if binding then
if arg1 == "ESCAPE" then
-- Remove existing binding
local key = (GetBindingKey(binding))
if (key) then
-- Remove all existing bindings
local keys = { GetBindingKey(binding) }
for _, key in ipairs(keys) do
SetBinding(key)
end
if keys[1] then
SaveBindings(GetCurrentBindingSet())
end
else