1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Feature: Content of Dialog can be copied into clipboard

This commit is contained in:
Chernyavsky Andrey 2025-01-25 23:03:25 +05:00
parent ffe832aaa3
commit 6d1e21938d

View file

@ -387,6 +387,14 @@ namespace Beefy.widgets
evt.mHandled = true;
}
}
if (evt.mKeyFlags.HasFlag(.Ctrl) && (evt.mKeyCode == (KeyCode)'C'))
{
var clipboardText = scope String();
clipboardText.AppendF("{}\n{}", mTitle, mText);
BFApp.sApp.SetClipboardText(clipboardText, "");
evt.mHandled = true;
}
}
}
}