Pcbnew: better fix for dialog default button handler issues.

Use DIALOG_SHIM::SetInitialFocus() to fix default button handler issue
on all platforms.  Commit cabc33b4 only fixed the problem on windows.
This commit is contained in:
Wayne Stambaugh 2019-03-04 15:30:32 -05:00
parent 3dfa57fe1d
commit 4612175da2
3 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ bool DIALOG_COPPER_ZONE::TransferDataToWindow()
// Build list of nets:
buildAvailableListOfNets();
m_ListNetNameSelection->SetFocus();
SetInitialFocus( m_ListNetNameSelection );
return true;
}

View File

@ -93,7 +93,7 @@ bool DIALOG_KEEPOUT_AREA_PROPERTIES::TransferDataToWindow()
case ZONE_CONTAINER::DIAGONAL_FULL: m_OutlineAppearanceCtrl->SetSelection( 2 ); break;
}
m_OutlineAppearanceCtrl->SetFocus();
SetInitialFocus( m_OutlineAppearanceCtrl );
return true;
}

View File

@ -92,7 +92,7 @@ bool DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow()
case ZONE_CONTAINER::DIAGONAL_FULL: m_OutlineAppearanceCtrl->SetSelection( 2 ); break;
}
m_OutlineAppearanceCtrl->SetFocus();
SetInitialFocus( m_OutlineAppearanceCtrl );
return true;
}