diff --git a/src/olympic/studio/modlib/src/filetreemodel.cpp b/src/olympic/studio/modlib/src/filetreemodel.cpp index b921f8dd..a32e1196 100644 --- a/src/olympic/studio/modlib/src/filetreemodel.cpp +++ b/src/olympic/studio/modlib/src/filetreemodel.cpp @@ -93,6 +93,9 @@ void FileTreeModel::draw(turbine::Context &tctx) const noexcept { if (ImGui::IsItemActivated() || ImGui::IsItemClicked(1)) { m_explorer.setSelectedNode(this); } + if (ImGui::IsItemFocused() && ImGui::IsKeyPressed(ImGuiKey_Delete)) { + m_explorer.fileDeleted(m_fullPath); + } ig::IDStackItem const idStackItem{m_name}; m_explorer.drawDirContextMenu(m_fullPath); if (m_explorer.fileDraggable()) {