mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 18:18:00 +02:00
Added Dialog.GenerateClipboardText to fix About version info copy
This commit is contained in:
parent
34c6ca9a1a
commit
cd3052e418
2 changed files with 15 additions and 14 deletions
|
@ -238,17 +238,11 @@ namespace IDE.ui
|
|||
MarkDirty();
|
||||
}
|
||||
|
||||
public override void KeyDown(KeyCode keyCode, bool isRepeat)
|
||||
{
|
||||
base.KeyDown(keyCode, isRepeat);
|
||||
|
||||
if ((keyCode == (.)'C') && (mWidgetWindow.GetKeyFlags(true) == .Ctrl))
|
||||
{
|
||||
String versionInfo = scope String();
|
||||
versionInfo.AppendF("Beef IDE Version {}", gApp.mVersionInfo.FileVersion);
|
||||
versionInfo.AppendF(" Build {}", gApp.mVersionInfo.ProductVersion);
|
||||
gApp.SetClipboardText(versionInfo);
|
||||
}
|
||||
public override void GenerateClipboardText(String outText)
|
||||
{
|
||||
outText.AppendF("Beef IDE Version {}", gApp.mVersionInfo.FileVersion);
|
||||
outText.AppendF(" Build {}", gApp.mVersionInfo.ProductVersion);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue