Skip to content

Commit 5d02bc6

Browse files
committed
Escape button closes dat view so script output is visible
1 parent 6b62639 commit 5d02bc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Export/Main.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,12 @@ function main:OnKeyDown(key, doubleClick)
599599
self:SelectControl(self.controls.datSearch)
600600
end
601601
return
602+
-- ESC key closes Dat window so that the script menu is shown.
603+
elseif key == "ESCAPE" then
604+
if self.controls and self.controls.scripts and self.SelectControl then
605+
self:SetCurrentDat()
606+
end
607+
return
602608
end
603609
t_insert(self.inputEvents, { type = "KeyDown", key = key, doubleClick = doubleClick })
604610
end

0 commit comments

Comments
 (0)