File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4401,15 +4401,15 @@ ed::EditorAction::AcceptResult ed::ShortcutAction::Accept(const Control& control
44014401 Action candidateAction = None;
44024402
44034403 auto & io = ImGui::GetIO ();
4404- if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGui::GetKeyIndex ( ImGuiKey_X) ))
4404+ if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGuiKey_X))
44054405 candidateAction = Cut;
4406- if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGui::GetKeyIndex ( ImGuiKey_C) ))
4406+ if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGuiKey_C))
44074407 candidateAction = Copy;
4408- if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGui::GetKeyIndex ( ImGuiKey_V) ))
4408+ if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGuiKey_V))
44094409 candidateAction = Paste;
44104410 if (io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (GetKeyIndexForD ()))
44114411 candidateAction = Duplicate;
4412- if (!io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGui::GetKeyIndex ( ImGuiKey_Space) ))
4412+ if (!io.KeyCtrl && !io.KeyShift && !io.KeyAlt && ImGui::IsKeyPressed (ImGuiKey_Space))
44134413 candidateAction = CreateNode;
44144414
44154415 if (candidateAction != None)
@@ -4963,7 +4963,7 @@ ed::EditorAction::AcceptResult ed::DeleteItemsAction::Accept(const Control& cont
49634963 return False;
49644964
49654965 auto & io = ImGui::GetIO ();
4966- if (Editor->CanAcceptUserInput () && ImGui::IsKeyPressed (ImGui::GetKeyIndex ( ImGuiKey_Delete) ) && Editor->AreShortcutsEnabled ())
4966+ if (Editor->CanAcceptUserInput () && ImGui::IsKeyPressed (ImGuiKey_Delete) && Editor->AreShortcutsEnabled ())
49674967 {
49684968 auto & selection = Editor->GetSelectedObjects ();
49694969 if (!selection.empty ())
You can’t perform that action at this time.
0 commit comments