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(); } } } }