|
@@ -322,6 +322,11 @@ namespace Beefy.widgets
|
|
|
mDefaultButton.MouseClicked(0, 0, 0, 0, 3);
|
|
|
}
|
|
|
|
|
|
+ public virtual void GenerateClipboardText(String outText)
|
|
|
+ {
|
|
|
+ outText.AppendF("{}\n{}", mTitle, mText);
|
|
|
+ }
|
|
|
+
|
|
|
void WindowKeyDown(KeyDownEvent evt)
|
|
|
{
|
|
|
if ((evt.mKeyCode != .Alt) && (mWidgetWindow.IsKeyDown(.Alt)) && (!mWidgetWindow.IsKeyDown(.Control)))
|
|
@@ -402,10 +407,12 @@ namespace Beefy.widgets
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- var clipboardText = scope String();
|
|
|
- clipboardText.AppendF("{}\n{}", mTitle, mText);
|
|
|
- BFApp.sApp.SetClipboardText(clipboardText, "");
|
|
|
- evt.mHandled = true;
|
|
|
+ var clipboardText = GenerateClipboardText(.. scope String());
|
|
|
+ if (!clipboardText.IsEmpty)
|
|
|
+ {
|
|
|
+ BFApp.sApp.SetClipboardText(clipboardText, "");
|
|
|
+ evt.mHandled = true;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|