[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;
|
Project *project = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -98,10 +98,13 @@ void StudioUI::drawMenu() noexcept {
|
|||||||
}
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
if (ImGui::MenuItem("Copy", "Ctrl+C")) {
|
if (ImGui::MenuItem("Copy", "Ctrl+C")) {
|
||||||
|
m_acitveEditor->copy();
|
||||||
}
|
}
|
||||||
if (ImGui::MenuItem("Cut", "Ctrl+X")) {
|
if (ImGui::MenuItem("Cut", "Ctrl+X")) {
|
||||||
|
m_acitveEditor->cut();
|
||||||
}
|
}
|
||||||
if (ImGui::MenuItem("Paste", "Ctrl+V")) {
|
if (ImGui::MenuItem("Paste", "Ctrl+V")) {
|
||||||
|
m_acitveEditor->paste();
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user