Skip to content

Commit fe704ad

Browse files
Co-authored-by: Blitz54 <Blitz54@users.noreply.github.com>
1 parent 008ca05 commit fe704ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Launch.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ function launch:ShowPrompt(r, g, b, str, func)
353353
self.promptFunc = func or function(key)
354354
if key == "RETURN" or key == "ESCAPE" then
355355
return true
356+
elseif key == "c" and IsKeyDown("CTRL") then
357+
local cleanStr = str:gsub("%^%d", "")
358+
Copy(cleanStr)
356359
elseif key == "F5" then
357360
self.doRestart = "Restarting..."
358361
return true
@@ -365,7 +368,7 @@ function launch:ShowErrMsg(fmt, ...)
365368
local version = self.versionNumber and
366369
"^8v"..self.versionNumber..(self.versionBranch and " "..self.versionBranch or "")
367370
or ""
368-
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.")
371+
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.")
369372
end
370373
end
371374

0 commit comments

Comments
 (0)