Toggle profiler window using F3.

PiperOrigin-RevId: 830869956
Change-Id: I396f89f95672096f59b909b9415be2168aac6473
This commit is contained in:
Haroon Qureshi
2025-11-11 05:33:15 -08:00
committed by Copybara-Service
parent 1fbea85ef0
commit 2261733aa4
+3 -1
View File
@@ -468,7 +468,9 @@ void App::HandleKeyboardEvents() {
}
// Visualization shortcuts.
if (ImGui_IsChordJustPressed(ImGuiKey_F6)) {
if (ImGui_IsChordJustPressed(ImGuiKey_F3)) {
ui_.profiler = !ui_.profiler;
} else if (ImGui_IsChordJustPressed(ImGuiKey_F6)) {
vis_options_.frame = (vis_options_.frame + 1) % mjNFRAME;
} else if (ImGui_IsChordJustPressed(ImGuiKey_F7)) {
vis_options_.label = (vis_options_.label + 1) % mjNLABEL;