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:
parent
8b033f527d
commit
e064020c06
1 changed files with 17 additions and 4 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue