mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Added Ctrl+C to copy version info
This commit is contained in:
parent
b7f30c798c
commit
2ca456eef8
1 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
using Beefy.theme.dark;
|
using Beefy.theme.dark;
|
||||||
using Beefy.gfx;
|
using Beefy.gfx;
|
||||||
using System;
|
using System;
|
||||||
|
using Beefy.events;
|
||||||
|
using Beefy.widgets;
|
||||||
|
|
||||||
namespace IDE.ui
|
namespace IDE.ui
|
||||||
{
|
{
|
||||||
|
@ -174,5 +176,18 @@ namespace IDE.ui
|
||||||
|
|
||||||
DoFire();
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue