Commit 2e7d1fe 1 parent 82a3406 commit 2e7d1fe Copy full SHA for 2e7d1fe
File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -499,21 +499,13 @@ void Gui::DrawMenu() {
499
499
}
500
500
}
501
501
502
- #if __APPLE__
503
- if ((ImGui::IsKeyDown (ImGuiKey_LeftSuper) || ImGui::IsKeyDown (ImGuiKey_RightSuper)) &&
504
- ImGui::IsKeyPressed (ImGuiKey_R, false )) {
505
- std::reinterpret_pointer_cast<ConsoleWindow>(
506
- Context::GetInstance ()->GetWindow ()->GetGui ()->GetGuiWindow (" Console" ))
507
- ->Dispatch (" reset" );
508
- }
509
- #else
502
+ // Mac interprets this as cmd+r when io.ConfigMacOSXBehavior is on (on by default)
510
503
if ((ImGui::IsKeyDown (ImGuiKey_LeftCtrl) || ImGui::IsKeyDown (ImGuiKey_RightCtrl)) &&
511
504
ImGui::IsKeyPressed (ImGuiKey_R, false )) {
512
505
std::reinterpret_pointer_cast<ConsoleWindow>(
513
506
Context::GetInstance ()->GetWindow ()->GetGui ()->GetGuiWindow (" Console" ))
514
507
->Dispatch (" reset" );
515
508
}
516
- #endif
517
509
518
510
if (GetMenuBar ()) {
519
511
GetMenuBar ()->Update ();
You can’t perform that action at this time.
0 commit comments