Close frame on escape

This commit is contained in:
2025-01-06 20:11:40 +01:00
parent 546aa27bb1
commit be1093d51f

View File

@@ -199,6 +199,11 @@ local configFrame = StaticGridFrame.new("HeimdallConfig",
40, 12,
{ w = 1024 + 512, h = 1024 })
configFrame:MakeMovable()
configFrame.frame:SetScript("OnKeyUp", function(self, key)
if key == "ESCAPE" then
self:Hide()
end
end)
local colors = {
{ 1, 0, 0, 1 },