[nostalgia/studio] Hook up Copy/Cut/Paste commands
This commit is contained in:
parent
4dd1d4331b
commit
92651973ce
@ -15,4 +15,4 @@ struct StudioContext {
|
||||
Project *project = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user