summaryrefslogtreecommitdiff
path: root/src/imgui_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imgui_ui.cpp')
-rw-r--r--src/imgui_ui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/imgui_ui.cpp b/src/imgui_ui.cpp
index 57d3f79..546392a 100644
--- a/src/imgui_ui.cpp
+++ b/src/imgui_ui.cpp
@@ -596,11 +596,12 @@ ImGui_ProcessInputs(project_data *File, project_state *State, ui *UI, memory *Me
if (ImGui::IsKeyPressed(ImGuiKey_Delete))
{
- Bezier_Delete_Selected(File, State, Memory,
- Sorted.LayerArray, Sorted.CompArray,
- Sorted.PropertyStart, Sorted.PropertyArray);
+ State->HotkeyInput = hotkey_deletelayer;
#if 0
if (State->FocusedWindow == focus_timeline) {
+ Bezier_Delete_Selected(File, State, Memory,
+ Sorted.LayerArray, Sorted.CompArray,
+ Sorted.PropertyStart, Sorted.PropertyArray);
} else {
State->HotkeyInput = hotkey_deletelayer;
}