thief-mission-viewer/project/code/TMV/UI/AssetBrowser.cs

19 lines
336 B
C#

using Godot;
namespace KeepersCompound.TMV.UI;
public partial class AssetBrowser : Control
{
public override void _ShortcutInput(InputEvent input)
{
if (input is InputEventKey keyEvent && keyEvent.Pressed)
{
if (keyEvent.Keycode == Key.Space)
{
Visible = !Visible;
GetViewport().SetInputAsHandled();
}
}
}
}