From 1bd09d0950cb2d8b4144ad634c7a467976661287 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 14 Feb 2008 17:14:27 +0000 Subject: [PATCH] making the wxContainer select the text field for first child focus instead of choice, so that we have always the same behaviour, since text fields are always focusable, choices only with full keyboard access... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/combobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index bf360cb425..c09773741a 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -370,7 +370,6 @@ bool wxComboBox::Create(wxWindow *parent, return false; } - m_choice = new wxComboBoxChoice(this, style ); wxSize csize = size; if ( style & wxCB_READONLY ) { @@ -385,6 +384,7 @@ bool wxComboBox::Create(wxWindow *parent, csize.y += 2 * TEXTFOCUSBORDER ; } } + m_choice = new wxComboBoxChoice(this, style ); DoSetSize(pos.x, pos.y, csize.x, csize.y);