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:
parent
b7f30c798c
commit
2ca456eef8
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue