diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index 8299aff9..94a7d179 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -787,6 +787,11 @@ namespace Nuake { m_IsRenaming = true; } + if (!m_IsRenaming && Selection.Type == EditorSelectionType::Entity && Input::IsKeyPressed(Key::DELETE)) + { + QueueDeletion = Selection.Entity; + } + if (ImGui::BeginPopupContextItem()) { Selection = EditorSelection(e); @@ -804,7 +809,7 @@ namespace Nuake { } ImGui::Separator(); } - + if (ImGui::Selectable("Remove")) { QueueDeletion = e;