[nostalgia/studio] Hook up Copy/Cut/Paste commands

This commit is contained in:
Gary Talent 2022-03-10 20:40:51 -06:00
parent 4dd1d4331b
commit 92651973ce
2 changed files with 4 additions and 1 deletions

View File

@ -15,4 +15,4 @@ struct StudioContext {
Project *project = nullptr;
};
}
}

View File

@ -98,10 +98,13 @@ void StudioUI::drawMenu() noexcept {
}
ImGui::Separator();
if (ImGui::MenuItem("Copy", "Ctrl+C")) {
m_acitveEditor->copy();
}
if (ImGui::MenuItem("Cut", "Ctrl+X")) {
m_acitveEditor->cut();
}
if (ImGui::MenuItem("Paste", "Ctrl+V")) {
m_acitveEditor->paste();
}
ImGui::EndMenu();
}