Implement a more nuanced firstFocus for Track & Via Properties.
Fixes https://gitlab.com/kicad/code/kicad/issues/9645
This commit is contained in:
parent
2340f82091
commit
ab2eae6f48
|
@ -285,8 +285,6 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
|
||||||
|
|
||||||
m_DesignRuleViasCtrl->SetSelection( viaSelection );
|
m_DesignRuleViasCtrl->SetSelection( viaSelection );
|
||||||
|
|
||||||
SetInitialFocus( m_ViaDiameterCtrl );
|
|
||||||
|
|
||||||
m_ViaTypeChoice->Enable();
|
m_ViaTypeChoice->Enable();
|
||||||
|
|
||||||
switch( viaType )
|
switch( viaType )
|
||||||
|
@ -324,8 +322,6 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
|
||||||
}
|
}
|
||||||
|
|
||||||
m_DesignRuleWidthsCtrl->SetSelection( widthSelection );
|
m_DesignRuleWidthsCtrl->SetSelection( widthSelection );
|
||||||
|
|
||||||
SetInitialFocus( m_TrackWidthCtrl );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -339,7 +335,12 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
|
||||||
else
|
else
|
||||||
m_lockedCbox->Set3StateValue( wxCHK_UNCHECKED );
|
m_lockedCbox->Set3StateValue( wxCHK_UNCHECKED );
|
||||||
|
|
||||||
SetInitialFocus( m_tracks ? m_TrackWidthCtrl : m_ViaDiameterCtrl );
|
if( m_tracks )
|
||||||
|
SetInitialFocus( m_TrackWidthCtrl );
|
||||||
|
else if( m_netSelector->IsEnabled() )
|
||||||
|
SetInitialFocus( m_netSelector );
|
||||||
|
else
|
||||||
|
SetInitialFocus( m_ViaDiameterCtrl );
|
||||||
|
|
||||||
m_StdButtonsOK->SetDefault();
|
m_StdButtonsOK->SetDefault();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue