Add removing selected blend space point with Delete key

#2505
This commit is contained in:
Wojtek Figat
2024-04-29 10:35:07 +02:00
parent 1e5861de25
commit 1ef487a5cc

View File

@@ -186,6 +186,18 @@ namespace FlaxEditor.Surface.Archetypes
base.OnEndMouseCapture();
}
/// <inheritdoc />
public override bool OnKeyDown(KeyboardKeys key)
{
switch (key)
{
case KeyboardKeys.Delete:
_editor.SetAsset(_index, Guid.Empty);
return true;
}
return base.OnKeyDown(key);
}
}
/// <summary>