X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7fe42e848cc0c9058dae906c3a7bded50681e6..e86aa7a62cc8be79ffaeb0d07b70161cb9ea2c74:/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();