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,10 +390,23 @@ namespace Beefy.widgets
if (evt.mKeyFlags.HasFlag(.Ctrl) && (evt.mKeyCode == (KeyCode)'C')) if (evt.mKeyFlags.HasFlag(.Ctrl) && (evt.mKeyCode == (KeyCode)'C'))
{ {
var clipboardText = scope String(); ClipboardBlock: do
clipboardText.AppendF("{}\n{}", mTitle, mText); {
BFApp.sApp.SetClipboardText(clipboardText, ""); if (mChildWidgets != null)
evt.mHandled = true; {
for (var child in mChildWidgets)
{
if (child is ButtonWidget)
continue;
break ClipboardBlock;
}
}
var clipboardText = scope String();
clipboardText.AppendF("{}\n{}", mTitle, mText);
BFApp.sApp.SetClipboardText(clipboardText, "");
evt.mHandled = true;
}
} }
} }
} }