mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +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,6 +390,18 @@ namespace Beefy.widgets
|
|||
|
||||
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();
|
||||
clipboardText.AppendF("{}\n{}", mTitle, mText);
|
||||
BFApp.sApp.SetClipboardText(clipboardText, "");
|
||||
|
@ -398,3 +410,4 @@ namespace Beefy.widgets
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue