1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Added Ctrl+C to copy version info

This commit is contained in:
Brian Fiete 2020-09-28 16:53:42 -07:00
parent b7f30c798c
commit 2ca456eef8

View file

@ -1,6 +1,8 @@
using Beefy.theme.dark;
using Beefy.gfx;
using System;
using Beefy.events;
using Beefy.widgets;
namespace IDE.ui
{
@ -174,5 +176,18 @@ namespace IDE.ui
DoFire();
}
public override void KeyDown(KeyCode keyCode, bool isRepeat)
{
base.KeyDown(keyCode, isRepeat);
if ((keyCode == (.)'C') && (mWidgetWindow.GetKeyFlags() == .Ctrl))
{
String versionInfo = scope String();
versionInfo.AppendF("Beef IDE Version {}", gApp.mVersionInfo.FileVersion);
versionInfo.AppendF(" Build {}", gApp.mVersionInfo.ProductVersion);
gApp.SetClipboardText(versionInfo);
}
}
}
}