mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 04:50:49 +00:00
hoverbind: Escape clears every key bound to the button
This commit is contained in:
@@ -161,10 +161,12 @@ pfUI:RegisterModule("hoverbind", function ()
|
|||||||
if arg1 == "ESCAPE" and not binding then pfUI.hoverbind:Hide() return end
|
if arg1 == "ESCAPE" and not binding then pfUI.hoverbind:Hide() return end
|
||||||
if binding then
|
if binding then
|
||||||
if arg1 == "ESCAPE" then
|
if arg1 == "ESCAPE" then
|
||||||
-- Remove existing binding
|
-- Remove all existing bindings
|
||||||
local key = (GetBindingKey(binding))
|
local keys = { GetBindingKey(binding) }
|
||||||
if (key) then
|
for _, key in ipairs(keys) do
|
||||||
SetBinding(key)
|
SetBinding(key)
|
||||||
|
end
|
||||||
|
if keys[1] then
|
||||||
SaveBindings(GetCurrentBindingSet())
|
SaveBindings(GetCurrentBindingSet())
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user