diff --git a/src/olympic/studio/applib/src/newdir.cpp b/src/olympic/studio/applib/src/newdir.cpp index 9f2c8709..01caed37 100644 --- a/src/olympic/studio/applib/src/newdir.cpp +++ b/src/olympic/studio/applib/src/newdir.cpp @@ -46,6 +46,10 @@ void NewDir::draw(StudioContext &ctx) noexcept { ImGui::SetKeyboardFocusHere(); } ig::InputText("Name", m_str); + if (ImGui::IsItemFocused() && ImGui::IsKeyPressed(ImGuiKey_Enter)) { + newDir.emit(m_path + "/" + m_str); + close(); + } if (ig::PopupControlsOkCancel(m_open) == ig::PopupResponse::OK) { newDir.emit(m_path + "/" + m_str); close();