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:
parent
3dfa57fe1d
commit
4612175da2
|
@ -175,7 +175,7 @@ bool DIALOG_COPPER_ZONE::TransferDataToWindow()
|
|||
// Build list of nets:
|
||||
buildAvailableListOfNets();
|
||||
|
||||
m_ListNetNameSelection->SetFocus();
|
||||
SetInitialFocus( m_ListNetNameSelection );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue