19 lines
336 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|