From be1093d51f7775307c679895555301605cdf4cb3 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Mon, 6 Jan 2025 20:11:40 +0100 Subject: [PATCH] Close frame on escape --- Modules/Config.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/Config.lua b/Modules/Config.lua index c10282a..e3ecfb4 100644 --- a/Modules/Config.lua +++ b/Modules/Config.lua @@ -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 },