mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Use ImGui keycodes.
This commit is contained in:
parent
0d547bf4db
commit
1b7e8c3520
@ -1369,7 +1369,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
m_childCalls = false;
|
m_childCalls = false;
|
||||||
m_childCallList = false;
|
m_childCallList = false;
|
||||||
}
|
}
|
||||||
else if( ImGui::IsKeyDown( 'Z' ) )
|
else if( ImGui::IsKeyDown( ImGuiKey_Z ) )
|
||||||
{
|
{
|
||||||
m_childCalls = !m_childCalls;
|
m_childCalls = !m_childCalls;
|
||||||
}
|
}
|
||||||
@ -1566,7 +1566,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( samplesReady && ImGui::IsKeyDown( 'Z' ) ) m_childCalls = !m_childCalls;
|
if( samplesReady && ImGui::IsKeyDown( ImGuiKey_Z ) ) m_childCalls = !m_childCalls;
|
||||||
|
|
||||||
if( jumpOut != 0 )
|
if( jumpOut != 0 )
|
||||||
{
|
{
|
||||||
|
@ -772,7 +772,7 @@ bool View::DrawImpl()
|
|||||||
assert( m_shortcut == ShortcutAction::None );
|
assert( m_shortcut == ShortcutAction::None );
|
||||||
if( io.KeyCtrl )
|
if( io.KeyCtrl )
|
||||||
{
|
{
|
||||||
if( ImGui::IsKeyPressed( 'F' ) )
|
if( ImGui::IsKeyPressed( ImGuiKey_F ) )
|
||||||
{
|
{
|
||||||
m_findZone.show = true;
|
m_findZone.show = true;
|
||||||
m_shortcut = ShortcutAction::OpenFind;
|
m_shortcut = ShortcutAction::OpenFind;
|
||||||
|
Loading…
Reference in New Issue
Block a user