From 7138937cb1a882d06cc79190cc0c9f1a1aa042ed Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:39:13 +0000 Subject: [PATCH] in wxUniv, non-editable textctrl must be set focus, so that could get input value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/controls/textctrltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index 59d0bff977..f79193d1f0 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -203,7 +203,7 @@ void TextCtrlTestCase::ReadOnly() // SetEditable() is supposed to override wxTE_READONLY m_text->SetEditable(true); -#ifdef __WXOSX__ +#if defined(__WXOSX_COCOA__) || defined(__WXUNIVERSAL__) // a ready only text field might not have been focusable at all m_text->SetFocus(); #endif