From 64fd19dbacb987511677bef2a1b07634760b23d0 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 12 Jun 2013 21:30:38 +0000 Subject: [PATCH] osx needs a refocus git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/controls/textctrltest.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.45.2