We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9838465 commit 2062d57Copy full SHA for 2062d57
gui.lua
@@ -25,6 +25,11 @@ f:SetMovable(true)
25
f:RegisterForDrag("LeftButton")
26
f:SetScript("OnDragStart", f.StartMoving)
27
f:SetScript("OnDragStop", f.StopMovingOrSizing)
28
+f:SetScript("OnKeyDown", function (_, key)
29
+ if key == "ESCAPE" then
30
+ f:Hide()
31
+ end
32
+end)
33
f:Hide()
34
35
MySlot.MainFrame = f
0 commit comments