Close frame on escape
This commit is contained in:
@@ -199,6 +199,11 @@ local configFrame = StaticGridFrame.new("HeimdallConfig",
|
|||||||
40, 12,
|
40, 12,
|
||||||
{ w = 1024 + 512, h = 1024 })
|
{ w = 1024 + 512, h = 1024 })
|
||||||
configFrame:MakeMovable()
|
configFrame:MakeMovable()
|
||||||
|
configFrame.frame:SetScript("OnKeyUp", function(self, key)
|
||||||
|
if key == "ESCAPE" then
|
||||||
|
self:Hide()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
{ 1, 0, 0, 1 },
|
{ 1, 0, 0, 1 },
|
||||||
|
|||||||
Reference in New Issue
Block a user