Account for no menu binding (#468)

This commit is contained in:
Redox 2024-05-30 21:32:57 +02:00 committed by GitHub
parent 94c6f4a4dd
commit 0c1d194c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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