diff --git a/src/window/gui/Gui.cpp b/src/window/gui/Gui.cpp index fad42a985..dd7757dd0 100644 --- a/src/window/gui/Gui.cpp +++ b/src/window/gui/Gui.cpp @@ -504,21 +504,13 @@ void Gui::DrawMenu() { } } -#if __APPLE__ - if ((ImGui::IsKeyDown(ImGuiKey_LeftSuper) || ImGui::IsKeyDown(ImGuiKey_RightSuper)) && - ImGui::IsKeyPressed(ImGuiKey_R, false)) { - std::reinterpret_pointer_cast( - Context::GetInstance()->GetWindow()->GetGui()->GetGuiWindow("Console")) - ->Dispatch("reset"); - } -#else + // Mac interprets this as cmd+r when io.ConfigMacOSXBehavior is on (on by default) if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || ImGui::IsKeyDown(ImGuiKey_RightCtrl)) && ImGui::IsKeyPressed(ImGuiKey_R, false)) { std::reinterpret_pointer_cast( Context::GetInstance()->GetWindow()->GetGui()->GetGuiWindow("Console")) ->Dispatch("reset"); } -#endif if (GetMenuBar()) { GetMenuBar()->Update();