Don't let add-row processing intercept OK processing.
Fixes https://gitlab.com/kicad/code/kicad/issues/14579
This commit is contained in:
parent
2f392352b5
commit
5b56cb6bdb
|
@ -456,6 +456,7 @@ void GRID_TRICKS::onCharHook( wxKeyEvent& ev )
|
|||
bool handled = false;
|
||||
|
||||
if( ( ev.GetKeyCode() == WXK_RETURN || ev.GetKeyCode() == WXK_NUMPAD_ENTER )
|
||||
&& ev.GetModifiers() == wxMOD_NONE
|
||||
&& m_grid->GetGridCursorRow() == m_grid->GetNumberRows() - 1 )
|
||||
{
|
||||
if( m_grid->IsCellEditControlShown() )
|
||||
|
|
Loading…
Reference in New Issue