]> git.saurik.com Git - wxWidgets.git/commitdiff
osx needs a refocus
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 12 Jun 2013 21:30:38 +0000 (21:30 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 12 Jun 2013 21:30:38 +0000 (21:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/textctrltest.cpp

index a541f74b29f634513acbe083a3fd2b55553f717f..dee9da5822e49a698946085e365f44b511135764 100644 (file)
@@ -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();