Fix renaming selected actor in scene tree after creation and use editor shortcut

This commit is contained in:
Wojtek Figat
2021-06-01 21:10:57 +02:00
parent 0f01683c06
commit 0aa9c865ca
4 changed files with 16 additions and 17 deletions

View File

@@ -293,21 +293,6 @@ namespace FlaxEditor.SceneGraph.GUI
}
}
/// <inheritdoc />
public override bool OnKeyDown(KeyboardKeys key)
{
if (IsFocused)
{
if (key == KeyboardKeys.F2)
{
StartRenaming();
return true;
}
}
return base.OnKeyDown(key);
}
/// <inheritdoc />
protected override DragDropEffect OnDragEnterHeader(DragData data)
{