Focus second column control after property grid navigation.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20651
This commit is contained in:
Jeff Young
2025-08-03 23:17:09 +01:00
parent 918f0ec6af
commit 95da436ddd
+7 -2
View File
@@ -505,10 +505,15 @@ void PROPERTIES_PANEL::onCharHook( wxKeyEvent& aEvent )
}
}
if( aEvent.GetKeyCode() == WXK_RETURN || aEvent.GetKeyCode() == WXK_NUMPAD_ENTER )
if( aEvent.GetKeyCode() == WXK_RETURN || aEvent.GetKeyCode() == WXK_NUMPAD_ENTER
|| aEvent.GetKeyCode() == WXK_DOWN || aEvent.GetKeyCode() == WXK_UP )
{
m_grid->CommitChangesFromEditor();
/* don't skip this one; if we're not the last property we'll also go to the next row */
CallAfter( [this]()
{
m_grid->SelectProperty( m_grid->GetSelectedProperty(), true );
} );
}
aEvent.Skip();