diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 3a8eeeb5..20110b0f 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1369,7 +1369,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) m_childCalls = false; m_childCallList = false; } - else if( ImGui::IsKeyDown( 'Z' ) ) + else if( ImGui::IsKeyDown( ImGuiKey_Z ) ) { m_childCalls = !m_childCalls; } @@ -1566,7 +1566,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) break; } - if( samplesReady && ImGui::IsKeyDown( 'Z' ) ) m_childCalls = !m_childCalls; + if( samplesReady && ImGui::IsKeyDown( ImGuiKey_Z ) ) m_childCalls = !m_childCalls; if( jumpOut != 0 ) { diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 69c3b1be..9af3a766 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -772,7 +772,7 @@ bool View::DrawImpl() assert( m_shortcut == ShortcutAction::None ); if( io.KeyCtrl ) { - if( ImGui::IsKeyPressed( 'F' ) ) + if( ImGui::IsKeyPressed( ImGuiKey_F ) ) { m_findZone.show = true; m_shortcut = ShortcutAction::OpenFind;