mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Account for no menu binding (#468)
This commit is contained in:
parent
94c6f4a4dd
commit
0c1d194c52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user