]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/textctrltest.cpp
Applied #15539: wxRichTextCtrl: demonstrate adding and deleting table rows and column...
[wxWidgets.git] / tests / controls / textctrltest.cpp
index a541f74b29f634513acbe083a3fd2b55553f717f..044d662725938a67fded2f87e0eaeb1c89408dbb 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxTextCtrl unit test
 // Author:      Vadim Zeitlin
 // Created:     2007-09-25
-// RCS-ID:      $Id$
 // Copyright:   (c) 2007 Vadim Zeitlin <vadim@wxwidgets.org>
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -201,6 +200,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();