X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7fe42e848cc0c9058dae906c3a7bded50681e6..e5354813181461c154044d52a464b29fa1aefaf8:/tests/controls/textctrltest.cpp diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index a541f74b29..dee9da5822 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -201,6 +201,11 @@ void TextCtrlTestCase::ReadOnly() // SetEditable() is supposed to override wxTE_READONLY m_text->SetEditable(true); + +#ifdef __WXOSX__ + // a ready only text field might not have been focusable at all + m_text->SetFocus(); +#endif sim.Text("abcdef"); wxYield();