diff --git a/pcbnew/dialogs/dialog_text_properties.cpp b/pcbnew/dialogs/dialog_text_properties.cpp index 3f10335d10..de97648668 100644 --- a/pcbnew/dialogs/dialog_text_properties.cpp +++ b/pcbnew/dialogs/dialog_text_properties.cpp @@ -22,24 +22,28 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +#include + +#include +#include +#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include + +#include #include + +#include #include +#include +#include #include #include -#include -#include +#include +#include +#include -#include +#include /** @@ -149,6 +153,23 @@ DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES( PCB_BASE_EDIT_FRAME* aParent, BO m_sdbSizerOK->SetDefault(); + // Tab down the left side first + KIUI::SetControlsTabOrder( { + m_LayerLabel, + m_LayerSelectionCtrl, + m_SizeXCtrl, + m_SizeYCtrl, + m_ThicknessCtrl, + m_PositionXCtrl, + m_PositionYCtrl, + m_Visible, + m_Italic, + m_JustifyChoice, + m_OrientCtrl, + m_Mirrored, + m_KeepUpright, + } ); + // wxTextCtrls fail to generate wxEVT_CHAR events when the wxTE_MULTILINE flag is set, // so we have to listen to wxEVT_CHAR_HOOK events instead. Connect( wxEVT_CHAR_HOOK, wxKeyEventHandler( DIALOG_TEXT_PROPERTIES::OnCharHook ), NULL, this );