diff --git a/src/Launch.lua b/src/Launch.lua index e018879cad..2453884daf 100644 --- a/src/Launch.lua +++ b/src/Launch.lua @@ -361,6 +361,13 @@ function launch:ShowPrompt(r, g, b, str, func) self.promptFunc = func or function(key) if key == "RETURN" or key == "ESCAPE" then return true + elseif key == "F4" then + if self.main then + self.main.popups = { } + self.main.inputEvents = { } + self.main:SetMode("LIST") + end + return true elseif key == "c" and IsKeyDown("CTRL") then local cleanStr = str:gsub("%^%d", "") Copy(cleanStr) @@ -376,7 +383,7 @@ function launch:ShowErrMsg(fmt, ...) local version = self.versionNumber and "^8v"..self.versionNumber..(self.versionBranch and " "..self.versionBranch or "") or "" - self:ShowPrompt(1, 0, 0, "^1Error:\n\n^0"..string.format(fmt, ...).."\n"..version.."\n^0Press Enter/Escape to dismiss, or F5 to restart the application.\nPress CTRL + C to copy error text.") + self:ShowPrompt(1, 0, 0, "^1Error:\n\n^0"..string.format(fmt, ...).."\n"..version.."\n^0Press Enter/Escape to dismiss, F4 to return to build selection, or F5 to restart the application.\nPress CTRL + C to copy error text.") end end