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

Merge pull request #2108 from kallisto56/master

Feature: Content of Dialog can be copied into clipboard
This commit is contained in:
Brian Fiete 2025-01-25 10:18:48 -08:00 committed by GitHub
commit 12247df512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}
}
}
}