Use ImGui keycodes.

This commit is contained in:
Bartosz Taudul 2022-04-27 01:16:46 +02:00
parent 0d547bf4db
commit 1b7e8c3520
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 3 additions and 3 deletions

View File

@ -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 )
{ {

View File

@ -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;