1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Dialog Ctrl+C fix for non-simple dialogs

This commit is contained in:
Brian Fiete 2025-01-30 06:44:28 -08:00
parent 8b033f527d
commit e064020c06

View file

@ -390,6 +390,18 @@ namespace Beefy.widgets
if (evt.mKeyFlags.HasFlag(.Ctrl) && (evt.mKeyCode == (KeyCode)'C')) if (evt.mKeyFlags.HasFlag(.Ctrl) && (evt.mKeyCode == (KeyCode)'C'))
{ {
ClipboardBlock: do
{
if (mChildWidgets != null)
{
for (var child in mChildWidgets)
{
if (child is ButtonWidget)
continue;
break ClipboardBlock;
}
}
var clipboardText = scope String(); var clipboardText = scope String();
clipboardText.AppendF("{}\n{}", mTitle, mText); clipboardText.AppendF("{}\n{}", mTitle, mText);
BFApp.sApp.SetClipboardText(clipboardText, ""); BFApp.sApp.SetClipboardText(clipboardText, "");
@ -397,4 +409,5 @@ namespace Beefy.widgets
} }
} }
} }
}
} }