Skip to content

Commit

Permalink
Account for no menu binding (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrefgtzweve authored May 30, 2024
1 parent 94c6f4a commit 0c1d194
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/advdupe2/file_browser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,7 @@ function PANEL:Init()
self.FileName.OnTextChanged = function()

if (self.FileName.FirstChar) then
if (string.lower(self.FileName:GetValue()[1] or "") ==
string.lower(input.LookupBinding("menu"))) then
if (string.lower(self.FileName:GetValue()[1] or "") == string.lower(input.LookupBinding("menu") or "q")) then
self.FileName:SetText(self.FileName.PrevText)
self.FileName:SelectAll()
self.FileName.FirstChar = false
Expand Down

0 comments on commit 0c1d194

Please sign in to comment.