Skip to content

Commit 37757e0

Browse files
committed
Ctrl+f to jump to dat search box
1 parent 4f86ea4 commit 37757e0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Export/Main.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,17 @@ function main:SaveSettings()
591591
end
592592
end
593593

594+
function main:OnKeyDown(key, doubleClick)
595+
-- Ctrl+F shortcut for focusing dat file Search
596+
if key == "f" and IsKeyDown("CTRL") then
597+
if self.controls and self.controls.datSearch and self.SelectControl then
598+
self:SelectControl(self.controls.datSearch)
599+
end
600+
return
601+
end
602+
t_insert(self.inputEvents, { type = "KeyDown", key = key, doubleClick = doubleClick })
603+
end
604+
594605
function main:DrawArrow(x, y, width, height, dir)
595606
local x1 = x - width / 2
596607
local x2 = x + width / 2

0 commit comments

Comments
 (0)